/* booking.css — what the booking pages add on top of the site: the day strip, the service
   list, the time grid, the checkout blocks. Drawn only in the contract's tokens
   (docs/WEBSITE.md), so they read as part of whatever site the tenant chose. */

/* Areas: one tab per area; a lone tab is no choice, so it is not shown. */

.areas { margin-bottom: 1.25rem; }
.areas:has(> :only-child) { display: none; }
.areas .tab img { width: 1.6rem; height: 1.6rem; border-radius: 50%; object-fit: cover; }

/* The card ------------------------------------------------------------------ */

.booking { padding: 0; overflow: hidden; }

.booking-label {
	margin: 0 0 0.9rem;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted);
}

/* Day strip ----------------------------------------------------------------- */

.daystrip {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	padding: 1rem 1.25rem;
	border-bottom: 1px solid var(--line);
	background: color-mix(in srgb, var(--text) 3%, var(--surface));
}

.daynav {
	flex: none;
	width: 2.4rem;
	height: 2.4rem;
	border: 1px solid var(--line);
	border-radius: 50%;
	background: var(--surface);
	color: var(--text);
	font-size: 1.1rem;
	cursor: pointer;
	transition: border-color 0.15s ease;
}
.daynav:hover { border-color: var(--text); }
.daynav[disabled] { opacity: 0.35; cursor: default; }

.days {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 0.4rem;
	flex: 1;
	min-width: 0;
}

.day {
	display: grid;
	justify-items: center;
	gap: 0.15rem;
	padding: 0.55rem 0.25rem;
	border: 1px solid transparent;
	border-radius: var(--radius-sm);
	background: transparent;
	color: var(--text);
	font: inherit;
	line-height: 1.2;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease;
}
.day:hover { border-color: var(--line); background: var(--surface); }
.day-name { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.day-num { font-size: 1.15rem; font-weight: 600; }
.day.is-active { background: var(--accent); border-color: var(--accent); color: var(--accent-contrast); }
.day.is-active .day-name { color: var(--accent-contrast); opacity: 0.8; }

/* Services and times --------------------------------------------------------- */

.booking-body {
	display: grid;
	grid-template-columns: minmax(15rem, 20rem) 1fr;
}
.services { padding: 1.5rem 1.5rem 1.75rem; border-right: 1px solid var(--line); }
.times { padding: 1.5rem 1.5rem 1.75rem; }

.service {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	width: 100%;
	padding: 0.85rem 1rem;
	margin-bottom: 0.4rem;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	background: var(--surface);
	color: var(--text);
	font: inherit;
	text-align: left;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease;
}
.service:hover { border-color: var(--text); }
.service.is-active { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.service.is-empty { opacity: 0.5; }
.service-name { font-weight: 600; }
.service-meta { display: block; font-size: 0.85rem; color: var(--muted); }
.service-price { margin-left: auto; font-weight: 600; white-space: nowrap; }

.timegrid {
	display: grid;
	gap: 0.55rem;
	grid-template-columns: repeat(auto-fill, minmax(6rem, 1fr));
}

.time {
	padding: 0.75rem 0.5rem;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	background: var(--surface);
	color: var(--text);
	font: 600 1rem/1.2 var(--font);
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.time:hover { border-color: var(--accent); background: var(--accent); color: var(--accent-contrast); }

.times .status { margin: 0.2rem 0 0; }

@media (max-width: 48rem) {
	.booking-body { grid-template-columns: 1fr; }
	.services { border-right: 0; border-bottom: 1px solid var(--line); }
	.day-name { font-size: 0.66rem; }
}

/* Checkout ---------------------------------------------------------------- */

.checkout { display: grid; gap: 1.6rem; }
.checkout h2 { margin: 0 0 0.3rem; font-size: 1.6rem; }
.checkout h3 { margin: 0 0 0.6rem; font-size: 1.05rem; }

.summary-line { margin: 0; color: var(--muted); }

.summary-total {
	display: flex;
	justify-content: space-between;
	margin: 0.9rem 0 0;
	padding-top: 0.9rem;
	border-top: 1px solid var(--line);
	font-size: 1.1rem;
}

.extra {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	padding: 0.5rem 0;
	cursor: pointer;
}
.extra input { width: 1.1rem; height: 1.1rem; accent-color: var(--accent); }
.extra-price { margin-left: auto; color: var(--muted); font-size: 0.95rem; }
.extra.is-soldout { opacity: 0.45; cursor: default; }

.paymethods { display: grid; gap: 0.5rem; }

.paymethod {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.9rem 1.1rem;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	background: var(--surface);
	cursor: pointer;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.paymethod:hover { border-color: var(--muted); }
.paymethod:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.paymethod input { width: 1.05rem; height: 1.05rem; accent-color: var(--accent); }

/* My bookings ------------------------------------------------------------- */

.bookinglist { display: grid; gap: 0.6rem; }

.bookingrow {
	display: flex;
	align-items: center;
	gap: 1.2rem;
	padding: 1rem 1.25rem;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	background: var(--surface);
	color: var(--text);
	text-decoration: none;
	transition: border-color 0.15s ease;
}
.bookingrow:hover { border-color: var(--text); }

.bookingrow-when { display: grid; min-width: 11rem; }
.bookingrow-when strong { text-transform: capitalize; }
.bookingrow-when span { font-size: 0.9rem; color: var(--muted); }
.bookingrow-what { display: grid; }
.bookingrow-what span { color: var(--muted); font-size: 0.9rem; }
.bookingrow .badge { margin-left: auto; }

.checkout > :empty { display: none; }
