/**
 * Zoet by Sandy — kostencalculator (/berekenen)
 * Standalone pagina zonder site-header/footer.
 */

:root {
	--zbs-primary: #7a2321;
	--zbs-primary-dark: #4a1513;
	--zbs-secondary: #a6412f;
	--zbs-accent: #d47732;
	--zbs-accent-soft: #e5a066;
	--zbs-cream: #f8efe5;
	--zbs-cream-light: #fff9f2;
	--zbs-chocolate: #3b211b;
	--zbs-muted: #765c52;
	--zbs-border: #e4c2a7;
	--zbs-white: #fff9f1;
	--zbs-radius: 10px;
	--zbs-radius-lg: 12px;
	--zbs-shadow: 0 8px 32px rgba(59, 33, 27, 0.08);
	--zbs-container: 900px;
}

body.zbs-berekenen-standalone {
	margin: 0;
	padding: 0;
	background: var(--zbs-cream-light);
	min-height: 100vh;
}

body.zbs-berekenen-standalone .elementor-location-header,
body.zbs-berekenen-standalone .elementor-location-footer,
body.zbs-berekenen-standalone #site-header,
body.zbs-berekenen-standalone #site-footer,
body.zbs-berekenen-standalone .site-header,
body.zbs-berekenen-standalone .site-footer {
	display: none !important;
}

body.zbs-berekenen-standalone .elementor {
	padding: 0 !important;
	margin: 0 !important;
	max-width: 100% !important;
}

body.zbs-berekenen-standalone .e-con {
	padding: 0 !important;
	margin: 0 !important;
	max-width: 100% !important;
}

body.zbs-berekenen-login {
	margin: 0;
	min-height: 100vh;
	background: linear-gradient(160deg, var(--zbs-cream) 0%, var(--zbs-cream-light) 50%, #fff 100%);
	font-family: 'Nunito Sans', system-ui, sans-serif;
	color: var(--zbs-chocolate);
}

.zbs-bk-login-wrap {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.5rem;
}

.zbs-bk-login-card {
	width: 100%;
	max-width: 380px;
	background: var(--zbs-white);
	border: 1px solid var(--zbs-border);
	border-radius: var(--zbs-radius-lg);
	box-shadow: var(--zbs-shadow);
	padding: 2rem 1.75rem;
}

.zbs-bk-login-brand {
	text-align: center;
	margin-bottom: 1.5rem;
}

.zbs-bk-login-brand h1 {
	margin: 0.5rem 0 0.25rem;
	font-family: Georgia, 'Times New Roman', serif;
	font-size: 1.35rem;
	font-weight: 600;
}

.zbs-bk-login-brand p {
	margin: 0;
	font-size: 0.9rem;
	color: var(--zbs-muted);
}

.zbs-bk-login-error {
	background: rgba(122, 35, 33, 0.08);
	border: 1px solid rgba(122, 35, 33, 0.25);
	color: var(--zbs-primary);
	border-radius: 8px;
	padding: 0.65rem 0.85rem;
	font-size: 0.85rem;
	margin-bottom: 1rem;
}

.zbs-bk-login-form {
	margin-top: 0.5rem;
}

.zbs-bk-logout {
	position: absolute;
	top: 1.1rem;
	right: 1.25rem;
	color: var(--zbs-cream);
	font-size: 0.8rem;
	font-weight: 600;
	text-decoration: none;
	opacity: 0.9;
}

.zbs-bk-logout:hover {
	opacity: 1;
	text-decoration: underline;
}

.zbs-berekenen-intro__text {
	max-width: 640px;
	margin: 0.75rem auto 0;
	color: var(--zbs-muted);
	line-height: 1.6;
}

.zbs-berekenen {
	position: relative;
	max-width: var(--zbs-container);
	margin: 1.5rem auto;
	background: var(--zbs-white);
	border: 1px solid var(--zbs-border);
	border-radius: var(--zbs-radius-lg);
	box-shadow: var(--zbs-shadow);
	overflow: hidden;
	font-family: 'Nunito Sans', system-ui, sans-serif;
	color: var(--zbs-chocolate);
}

.zbs-bk-header {
	background: linear-gradient(135deg, var(--zbs-primary), var(--zbs-secondary));
	color: var(--zbs-white);
	padding: 1.25rem 1.5rem;
}

.zbs-bk-brand {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.zbs-bk-brand-icon {
	font-size: 1.75rem;
	line-height: 1;
}

.zbs-bk-title {
	margin: 0;
	font-family: 'Lora', Georgia, serif;
	font-size: 1.35rem;
	font-weight: 600;
	line-height: 1.2;
}

.zbs-bk-subtitle {
	margin: 0.2rem 0 0;
	font-size: 0.85rem;
	opacity: 0.9;
}

.zbs-bk-tabs {
	display: flex;
	background: var(--zbs-primary-dark);
	padding: 0.4rem;
	gap: 0.25rem;
}

.zbs-bk-tab {
	flex: 1;
	border: none;
	background: transparent;
	color: var(--zbs-cream);
	padding: 0.65rem 0.5rem;
	border-radius: 8px;
	font-size: 0.85rem;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	transition: background 0.15s;
}

.zbs-bk-tab:hover {
	background: rgba(255, 255, 255, 0.1);
}

.zbs-bk-tab.active {
	background: var(--zbs-accent);
	color: var(--zbs-white);
}

.zbs-bk-app {
	padding: 1.25rem 1.5rem 1.5rem;
	background: var(--zbs-cream-light);
	min-height: 320px;
}

.zbs-bk-panel-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	margin-bottom: 1rem;
}

.zbs-bk-panel-header h3 {
	margin: 0;
	font-family: 'Lora', Georgia, serif;
	font-size: 1.15rem;
	font-weight: 600;
}

.zbs-bk-btn {
	border: none;
	border-radius: 8px;
	padding: 0.55rem 1rem;
	font-size: 0.875rem;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	transition: opacity 0.15s, transform 0.1s;
	white-space: nowrap;
}

.zbs-bk-btn:active {
	transform: scale(0.98);
}

.zbs-bk-btn:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.zbs-bk-btn--primary {
	background: var(--zbs-accent);
	color: var(--zbs-white);
}

.zbs-bk-btn--primary:hover:not(:disabled) {
	background: var(--zbs-secondary);
}

.zbs-bk-btn--secondary {
	background: var(--zbs-white);
	color: var(--zbs-chocolate);
	border: 1px solid var(--zbs-border);
}

.zbs-bk-btn--secondary:hover:not(:disabled) {
	background: var(--zbs-cream);
}

.zbs-bk-btn--danger {
	background: transparent;
	color: var(--zbs-primary);
	border: 1px solid var(--zbs-primary);
	padding: 0.45rem 0.75rem;
	font-size: 0.8rem;
}

.zbs-bk-btn--danger:hover:not(:disabled) {
	background: rgba(122, 35, 33, 0.06);
}

.zbs-bk-btn--block {
	width: 100%;
	margin-top: 0.5rem;
}

.zbs-bk-btn-icon {
	background: transparent;
	border: none;
	color: var(--zbs-muted);
	cursor: pointer;
	padding: 0.2rem 0.4rem;
	border-radius: 6px;
	font-size: 1.1rem;
	line-height: 1;
}

.zbs-bk-btn-icon:hover {
	background: var(--zbs-cream);
	color: var(--zbs-primary);
}

.zbs-bk-card {
	background: var(--zbs-white);
	border: 1px solid var(--zbs-border);
	border-radius: var(--zbs-radius);
	padding: 1rem 1.1rem;
	margin-bottom: 0.65rem;
	box-shadow: 0 2px 8px rgba(59, 33, 27, 0.05);
}

.zbs-bk-card-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 0.75rem;
}

.zbs-bk-card-title {
	font-weight: 700;
	font-size: 0.95rem;
}

.zbs-bk-card-meta {
	font-size: 0.8rem;
	color: var(--zbs-muted);
	margin-top: 0.15rem;
}

.zbs-bk-card-cost {
	font-weight: 700;
	color: var(--zbs-accent);
	font-size: 1rem;
	white-space: nowrap;
}

.zbs-bk-unit-suffix {
	font-size: 0.7rem;
	font-weight: 400;
	color: var(--zbs-muted);
}

.zbs-bk-card-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin-top: 0.65rem;
}

.zbs-bk-line-details {
	margin-top: 0.5rem;
	padding-top: 0.5rem;
	border-top: 1px dashed var(--zbs-border);
}

.zbs-bk-line-detail {
	display: flex;
	justify-content: space-between;
	font-size: 0.8rem;
	color: var(--zbs-muted);
	padding: 0.15rem 0;
	gap: 0.5rem;
}

.zbs-bk-empty {
	text-align: center;
	padding: 2rem 1rem;
	color: var(--zbs-muted);
}

.zbs-bk-empty p {
	margin-bottom: 1rem;
}

.zbs-bk-hint {
	font-size: 0.8rem;
	color: var(--zbs-muted);
	margin: 0;
}

.zbs-bk-form-overlay {
	position: absolute;
	inset: 0;
	background: rgba(59, 33, 27, 0.45);
	display: flex;
	align-items: flex-end;
	z-index: 50;
	animation: zbs-bk-fade-in 0.15s ease;
}

@keyframes zbs-bk-fade-in {
	from { opacity: 0; }
	to { opacity: 1; }
}

.zbs-bk-form-sheet {
	background: var(--zbs-white);
	border-radius: 16px 16px 0 0;
	width: 100%;
	max-height: 88%;
	overflow-y: auto;
	padding: 1.25rem 1.5rem 1.5rem;
	animation: zbs-bk-slide-up 0.2s ease;
}

@keyframes zbs-bk-slide-up {
	from { transform: translateY(16px); opacity: 0; }
	to { transform: translateY(0); opacity: 1; }
}

.zbs-bk-form-sheet h3 {
	margin: 0 0 1rem;
	font-family: 'Lora', Georgia, serif;
	font-size: 1.1rem;
}

.zbs-bk-form-group {
	margin-bottom: 0.85rem;
}

.zbs-bk-form-group label {
	display: block;
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--zbs-muted);
	margin-bottom: 0.3rem;
}

.zbs-bk-form-group input,
.zbs-bk-form-group select {
	width: 100%;
	padding: 0.55rem 0.7rem;
	border: 1px solid var(--zbs-border);
	border-radius: 8px;
	font-size: 0.9rem;
	font-family: inherit;
	background: var(--zbs-cream-light);
	color: var(--zbs-chocolate);
}

.zbs-bk-form-group input:focus,
.zbs-bk-form-group select:focus {
	outline: 2px solid var(--zbs-accent-soft);
	border-color: var(--zbs-accent);
}

.zbs-bk-form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.75rem;
}

.zbs-bk-form-actions {
	display: flex;
	gap: 0.5rem;
	margin-top: 1rem;
}

.zbs-bk-form-actions .zbs-bk-btn {
	flex: 1;
}

.zbs-bk-section-label {
	font-size: 0.7rem;
	font-weight: 700;
	color: var(--zbs-muted);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin: 0.75rem 0 0.5rem;
}

.zbs-bk-line-list {
	margin-top: 0.5rem;
}

.zbs-bk-line-item {
	display: grid;
	grid-template-columns: 1fr 64px 58px auto 28px;
	gap: 0.4rem;
	align-items: center;
	margin-bottom: 0.4rem;
	font-size: 0.8rem;
}

.zbs-bk-line-item--order {
	grid-template-columns: 1fr 64px auto 28px;
}

.zbs-bk-line-item select,
.zbs-bk-line-item input {
	padding: 0.4rem 0.5rem;
	border: 1px solid var(--zbs-border);
	border-radius: 6px;
	font-size: 0.8rem;
	font-family: inherit;
	background: var(--zbs-cream-light);
	min-width: 0;
}

.zbs-bk-line-cost {
	font-weight: 700;
	color: var(--zbs-accent);
	text-align: right;
	font-size: 0.75rem;
}

.zbs-bk-total-bar {
	background: var(--zbs-primary-dark);
	color: var(--zbs-cream);
	border-radius: var(--zbs-radius);
	padding: 0.85rem 1rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 0.85rem;
	font-weight: 600;
}

.zbs-bk-total-amount {
	font-size: 1.15rem;
	color: var(--zbs-accent-soft);
}

body.zbs-berekenen-page .zbs-berekenen-tool-section {
	padding: 0;
	min-height: 100vh;
	display: flex;
	align-items: flex-start;
	justify-content: center;
}

@media (max-width: 640px) {
	.zbs-bk-app {
		padding: 1rem;
	}

	.zbs-bk-panel-header {
		flex-direction: column;
		align-items: stretch;
	}

	.zbs-bk-form-row {
		grid-template-columns: 1fr;
	}

	.zbs-bk-line-item {
		grid-template-columns: 1fr 1fr;
	}

	.zbs-bk-line-item--order {
		grid-template-columns: 1fr 1fr;
	}

	.zbs-bk-line-cost {
		grid-column: 1 / -1;
		text-align: left;
	}

	.zbs-bk-btn-icon {
		justify-self: end;
	}
}
