/* Templiz Booking widget — palette: ink #14130F, paper #FFFFFF, sand #EFE9DC, line #DDD6C6, taupe accent #A08D6B */

.tzb-widget {
	--tzb-ink: #14130F;
	--tzb-paper: #FFFFFF;
	--tzb-sand: #EFE9DC;
	--tzb-line: #DDD6C6;
	--tzb-muted: #7A7263;
	--tzb-accent: #A08D6B;
	font-family: "Work Sans", Arial, sans-serif;
	color: var(--tzb-ink);
	max-width: 560px;
	background: var(--tzb-paper);
	border: 1px solid var(--tzb-line);
}

.tzb-widget * { box-sizing: border-box; }

.tzb-steps {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	border-bottom: 1px solid var(--tzb-line);
}
.tzb-steps li {
	flex: 1;
	height: 3px;
	background: var(--tzb-sand);
}
.tzb-steps li.is-active,
.tzb-steps li.is-done {
	background: var(--tzb-ink);
}

.tzb-panel { padding: 32px; }

.tzb-panel-title {
	font-family: "Bodoni Moda", Georgia, serif;
	font-weight: 500;
	font-size: 22px;
	margin: 0 0 20px;
	line-height: 1.3;
}

.tzb-service-list,
.tzb-staff-list { display: flex; flex-direction: column; }

.tzb-option-row {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 16px 0;
	border-bottom: 1px solid var(--tzb-line);
	cursor: pointer;
	background: none;
	border-left: none; border-right: none; border-top: none;
	width: 100%;
	text-align: left;
	font: inherit;
	color: inherit;
}
.tzb-option-row:first-child { padding-top: 0; }
.tzb-option-row:hover { color: var(--tzb-accent); }

.tzb-option-color {
	width: 3px;
	align-self: stretch;
	min-height: 32px;
	flex-shrink: 0;
}

.tzb-option-main { flex: 1; }
.tzb-option-name { font-size: 16px; }
.tzb-option-meta { font-size: 13px; color: var(--tzb-muted); margin-top: 2px; }
.tzb-option-price { font-size: 15px; white-space: nowrap; }

.tzb-datetime-grid { display: flex; flex-direction: column; gap: 20px; }

.tzb-date-input {
	border: 1px solid var(--tzb-line);
	padding: 12px 14px;
	font: inherit;
	background: var(--tzb-paper);
	width: 100%;
}

.tzb-slot-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
	gap: 8px;
}

.tzb-slot {
	border: 1px solid var(--tzb-line);
	padding: 10px 4px;
	text-align: center;
	background: var(--tzb-paper);
	cursor: pointer;
	font: inherit;
	font-size: 14px;
}
.tzb-slot:hover { border-color: var(--tzb-ink); }
.tzb-slot.is-selected { background: var(--tzb-ink); color: var(--tzb-paper); border-color: var(--tzb-ink); }

.tzb-empty-note { color: var(--tzb-muted); font-size: 14px; padding: 12px 0; }

.tzb-details-form { display: flex; flex-direction: column; gap: 12px; }

.tzb-field-row { display: flex; gap: 12px; }
.tzb-field-row input { flex: 1; }

.tzb-details-form input,
.tzb-details-form textarea {
	border: 1px solid var(--tzb-line);
	padding: 12px 14px;
	font: inherit;
	background: var(--tzb-paper);
	width: 100%;
}
.tzb-details-form textarea { min-height: 70px; resize: vertical; }

.tzb-payment-methods { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.tzb-payment-option {
	display: flex; align-items: center; gap: 10px;
	border: 1px solid var(--tzb-line);
	padding: 12px 14px;
	cursor: pointer;
}
.tzb-payment-option.is-selected { border-color: var(--tzb-ink); }

.tzb-summary {
	background: var(--tzb-sand);
	padding: 16px;
	font-size: 14px;
	line-height: 1.7;
}
.tzb-summary strong { font-weight: 600; }

.tzb-nav {
	display: flex;
	justify-content: space-between;
	margin-top: 24px;
}

.tzb-btn {
	font: inherit;
	font-size: 14px;
	padding: 13px 26px;
	border: 1px solid var(--tzb-ink);
	background: var(--tzb-ink);
	color: var(--tzb-paper);
	cursor: pointer;
}
.tzb-btn-ghost {
	background: transparent;
	color: var(--tzb-ink);
}
.tzb-btn:disabled { opacity: 0.4; cursor: default; }

.tzb-confirmation { text-align: center; padding: 20px 0; }
.tzb-confirmation-icon {
	width: 44px; height: 44px;
	margin: 0 auto 20px;
	border: 1px solid var(--tzb-ink);
	border-radius: 50%;
	position: relative;
}
.tzb-confirmation-icon::after {
	content: "";
	position: absolute;
	left: 13px; top: 21px;
	width: 6px; height: 12px;
	border-right: 2px solid var(--tzb-ink);
	border-bottom: 2px solid var(--tzb-ink);
	transform: rotate(45deg) translateY(-4px);
}
.tzb-confirmation-title {
	font-family: "Bodoni Moda", Georgia, serif;
	font-size: 22px;
	margin: 0 0 8px;
}
.tzb-confirmation-text { color: var(--tzb-muted); }

.tzb-error {
	margin: 0 32px 24px;
	padding: 12px 14px;
	border: 1px solid #B3554A;
	color: #B3554A;
	font-size: 14px;
}

.tzb-loading { color: var(--tzb-muted); font-size: 14px; padding: 12px 0; }

@media (max-width: 480px) {
	.tzb-panel { padding: 24px 20px; }
	.tzb-field-row { flex-direction: column; }
}
