/* ── Appointment Display Shortcode ─────────────────────────────────────── */
:root {
	--afd-green:     #16a34a;
	--afd-border:    #e5e7eb;
	--afd-radius:    12px;
	--afd-text:      #111827;
	--afd-muted:     #6b7280;
	--afd-bg:        #ffffff;
	--afd-shadow:    0 1px 3px rgba(0,0,0,.07), 0 4px 12px rgba(0,0,0,.06);
}

.afd-wrap * { box-sizing: border-box; }

.afd-wrap {
	margin: 0 auto;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	color: var(--afd-text);
	/* Sync with Rental Dashboard “Lapas iestatījumi” accent (--rd-site-accent on :root) */
	--afd-accent: var(--rd-site-accent, #2563eb);
	--afd-accent-lt: #eff6ff;
	--afd-focus-soft: rgba(37, 99, 235, 0.25);
	--afd-focus: rgba(37, 99, 235, 0.35);
	--afd-accent-border-soft: #bfdbfe;
	--afd-pill-bg: #f3f4f6;
	--afd-pill-border: #e5e7eb;
	--afd-cat-sticky-gap: 8px;
	--afd-mobile-gutter: 0px;
	/* Set by JS from <header> bottom (scroll-margin for in-page anchors) */
	--afd-sticky-top: 0px;
	--afd-service-scroll-margin: calc(96px + var(--afd-cat-sticky-gap));
}

@supports (color: color-mix(in srgb, red, blue)) {
	.afd-wrap {
		--afd-accent-lt: color-mix(in srgb, var(--afd-accent) 12%, #ffffff);
		--afd-focus-soft: color-mix(in srgb, var(--afd-accent) 28%, transparent);
		--afd-focus: color-mix(in srgb, var(--afd-accent) 42%, transparent);
		--afd-accent-border-soft: color-mix(in srgb, var(--afd-accent) 22%, #ffffff);
	}
}

/* ── Steps ───────────────────────────────────────────────────────────────── */
.afd-step { animation: afd-fadein .2s ease; }
.afd-step--hidden { display: none !important; }

.afd-step--wc {
	width: 100%;
	max-width: 100%;
}

@keyframes afd-fadein {
	from { opacity: 0; }
	to   { opacity: 1; }
}

.afd-step-head {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 20px;
}

.afd-step-title {
	margin: 0;
	font-size: 20px;
	font-weight: 700;
	color: var(--afd-text);
}

/* ── Sticky category pill nav (step 1) ───────────────────────────────────── */
.afd-cat-nav-sticky {
	position: sticky;
	top: var(--afd-sticky-top, 0px);
	z-index: 40;
	margin: 0 0 20px;
	padding: 10px 0 12px;
	background: #fff;
}

.afd-cat-nav {
	margin: 0;
}

.afd-cat-nav-scroll {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 10px;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	scroll-snap-type: x proximity;
	scrollbar-width: thin;
	scrollbar-color: #d1d5db transparent;
	padding: 2px 2px 4px;
	touch-action: pan-x;
}

.afd-cat-nav-scroll::-webkit-scrollbar {
	height: 5px;
}
.afd-cat-nav-scroll::-webkit-scrollbar-thumb {
	background: #d1d5db;
	border-radius: 99px;
}

.afd-cat-pill {
	flex: 0 0 auto;
	scroll-snap-align: start;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 9px 18px;
	margin: 0;
	border: 1px solid var(--afd-pill-border);
	border-radius: 999px;
	background: var(--afd-pill-bg);
	color: var(--afd-text);
	font-family: inherit;
	font-size: 13.5px;
	font-weight: 500;
	line-height: 1.2;
	white-space: nowrap;
	max-width: min(280px, 70vw);
	overflow: hidden;
	text-overflow: ellipsis;
	cursor: pointer;
	transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}

.afd-cat-pill:hover {
	border-color: var(--afd-accent);
	background: var(--afd-accent-lt);
	color: var(--afd-accent);
}

.afd-cat-pill:focus {
	outline: none;
	box-shadow: 0 0 0 3px var(--afd-focus-soft);
}

.afd-cat-pill:focus:not(:focus-visible) {
	box-shadow: none;
}

.afd-cat-pill:focus-visible {
	box-shadow: 0 0 0 3px var(--afd-focus-soft);
}

.afd-cat-pill.is-active {
	background: var(--rd-site-accent);
	color: #fff;
	border-color: var(--rd-site-accent);
	font-weight: 600;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.afd-cat-pill.is-active:hover {
	filter: brightness(0.94);
	border-color: var(--rd-site-accent);
	background: var(--rd-site-accent);
	color: #fff;
}

/* ── Mobile: edge-to-edge strip inside shortcode, sticky-safe (no overflow hack) ─ */
@media (max-width: 768px) {
	.afd-wrap {
		max-width: 100%;
		padding-left: var(--afd-mobile-gutter);
		padding-right: var(--afd-mobile-gutter);
		box-sizing: border-box;
	}

	#afd-step-services.afd-step-services--has-cat-nav .afd-step-head {
		margin-bottom: 10px;
	}

	/* Bleed to .afd-wrap edges (cancels wrap padding) — no 100vw, no transform */
	.afd-cat-nav-sticky {
		margin-left: calc(-1 * var(--afd-mobile-gutter));
		margin-right: calc(-1 * var(--afd-mobile-gutter));
		width: calc(100% + 2 * var(--afd-mobile-gutter));
		max-width: none;
		box-sizing: border-box;
		margin-bottom: 14px;
		padding: 4px var(--afd-mobile-gutter) 8px;
	}
}

/* ── Back button ─────────────────────────────────────────────────────────── */
.afd-back-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 14px;
	border: 1px solid var(--afd-border);
	border-radius: 8px;
	background: #fff;
	font-size: 13px;
	font-weight: 500;
	color: var(--afd-muted);
	cursor: pointer;
	transition: border-color .15s, color .15s;
}
.afd-back-btn:hover { border-color: #9ca3af; color: var(--afd-text); }

/* ── Services by category (shortcode step 1) ─────────────────────────────── */
.afd-services-by-category {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.afd-service-section {
	margin: 0;
	scroll-margin-top: var(--afd-service-scroll-margin, calc(96px + var(--afd-cat-sticky-gap)));
}

.afd-category-head {
	margin-bottom: 4px;
}

.afd-category-title {
	margin: 0 0 10px;
	font-size: 18px;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--afd-text);
	line-height: 1.25;
}

.afd-category-desc {
	margin: 0 0 12px;
	font-size: 14px;
	line-height: 1.55;
	color: var(--afd-muted);
	max-width: 72ch;
}

.afd-category-rule {
	display: block;
	height: 1px;
	margin: 0;
	border: none;
	background: var(--afd-border);
}

.afd-service-section .afd-services-grid {
	margin-top: 16px;
}

/* ── Service grid ────────────────────────────────────────────────────────── */
.afd-services-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
}

@media (max-width: 1024px) {
	.afd-services-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 768px) {
	.afd-services-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 480px) {
	.afd-services-grid {
		grid-template-columns: 1fr;
	}
}

.afd-service-card {
	background: var(--afd-bg);
	border: 1px solid var(--afd-border);
	border-radius: var(--afd-radius);
	overflow: hidden;
	cursor: pointer;
	transition: box-shadow .18s, border-color .18s, transform .15s;
	outline: none;
	display: flex;
	flex-direction: column;
}
.afd-service-card:hover,
.afd-service-card:focus {
	box-shadow: var(--afd-shadow);
	border-color: var(--afd-accent);
	transform: translateY(-2px);
}
.afd-service-card:focus:not(:focus-visible) {
	box-shadow: var(--afd-shadow);
}
.afd-service-card:focus-visible {
	outline: none;
	box-shadow: var(--afd-shadow), 0 0 0 3px var(--afd-focus);
	border-color: var(--afd-accent);
}

.afd-card-img-wrap {
	position: relative;
	flex-shrink: 0;
}

.afd-card-duration-badge {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 2;
	padding: 5px 11px;
	border-radius: 999px;
	background: rgba(17, 24, 39, 0.72);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
	pointer-events: none;
}

.afd-card-group-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 2;
	padding: 5px 11px;
	border-radius: 999px;
	background: rgba(17, 24, 39, 0.72);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
	pointer-events: none;
}

.afd-card-img {
	height: 160px;
	background-size: cover;
	background-position: center;
	background-color: #f9fafb;
}
.afd-card-img--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
}

.afd-card-body {
	padding: 14px 16px 16px;
	flex: 1;
	display: flex;
	flex-direction: column;
	min-height: 0;
}

.afd-card-title {
	margin: 0 0 5px;
	font-size: 15px;
	font-weight: 600;
}

.afd-card-desc {
	margin: 0 0 10px;
	font-size: 13px;
	color: var(--afd-muted);
	line-height: 1.45;
	flex: 1;
}

.afd-card-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: auto;
	padding-top: 2px;
}

.afd-card-price {
	font-size: 15px;
	font-weight: 700;
	color: var(--rd-site-accent);
	flex-shrink: 0;
}

.afd-card-book {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 16px;
	border-radius: 8px;
	border: none;
	background: var(--rd-site-accent);
	color: #fff;
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: filter 0.15s, transform 0.1s;
}
.afd-card-book:hover {
	filter: brightness(0.93);
}
.afd-card-book:active {
	transform: scale(0.98);
}
.afd-card-book:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px var(--afd-focus);
}

/* ── Service quick-view modal ───────────────────────────────────────────── */
.afd-sv-modal {
	position: fixed;
	inset: 0;
	/* Above theme headers and #wpadminbar (99999) so backdrop covers full viewport */
	z-index: 100050;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
	pointer-events: none;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.22s ease, visibility 0.22s ease;
}
.afd-sv-modal.is-open {
	pointer-events: auto;
	opacity: 1;
	visibility: visible;
}

.afd-sv-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.48);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	cursor: pointer;
}

.afd-sv-modal-panel {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 520px;
	max-height: min(92vh, 860px);
	display: flex;
	flex-direction: column;
	background: rgba(255, 255, 255, 0.94);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border: 1px solid rgba(255, 255, 255, 0.65);
	border-radius: 16px;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(0, 0, 0, 0.04);
	transform: translateY(12px) scale(0.98);
	transition: transform 0.22s ease;
}
.afd-sv-modal.is-open .afd-sv-modal-panel {
	transform: translateY(0) scale(1);
}

.afd-sv-modal-close {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 5;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: none;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.28);
	color: #1f2937;
	cursor: pointer;
	box-shadow: none;
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	transition: background 0.15s, color 0.15s;
}
.afd-sv-modal-close:hover {
	background: rgba(255, 255, 255, 0.45);
	color: #111827;
}

.afd-sv-modal-scroll {
	overflow-y: auto;
	overflow-x: hidden;
	-webkit-overflow-scrolling: touch;
	border-radius: 16px;
	padding: 20px 20px 24px;
}

.afd-sv-carousel {
	position: relative;
	margin: -20px -20px 16px;
}

.afd-sv-carousel-viewport {
	position: relative;
	border-radius: 16px 16px 0 0;
	overflow: hidden;
	background: #f3f4f6;
	min-height: 180px;
	max-height: 280px;
}
.afd-sv-carousel-viewport--swipe {
	touch-action: pan-y;
}

.afd-sv-carousel-empty {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 200px;
	color: #d1d5db;
}

.afd-sv-carousel-img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 280px;
	object-fit: cover;
}

.afd-sv-carousel-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: none;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.26);
	color: #111827;
	cursor: pointer;
	box-shadow: none;
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	transition: background 0.15s, color 0.15s;
}
.afd-sv-carousel-btn:hover {
	background: rgba(255, 255, 255, 0.42);
}
.afd-sv-carousel-btn--prev {
	left: 10px;
}
.afd-sv-carousel-btn--next {
	right: 10px;
}

.afd-sv-carousel-dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 10px;
	z-index: 3;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 8px;
	padding: 0 12px;
	pointer-events: auto;
	filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

.afd-sv-carousel-dot {
	width: 8px;
	height: 8px;
	padding: 0;
	border: none;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.45);
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
	cursor: pointer;
	transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}
.afd-sv-carousel-dot:hover {
	background: rgba(255, 255, 255, 0.65);
}
.afd-sv-carousel-dot.is-active {
	background: var(--afd-accent, #2563eb);
	box-shadow: none;
	transform: scale(1.15);
}

.afd-sv-modal-title {
	margin: 0 0 12px;
	padding-right: 44px;
	font-size: 1.35rem;
	font-weight: 700;
	color: var(--afd-text);
	line-height: 1.25;
}

.afd-sv-modal-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 16px;
}

.afd-sv-modal-chip {
	display: inline-flex;
	align-items: center;
	padding: 5px 11px;
	border-radius: 999px;
	font-size: 12.5px;
	font-weight: 500;
	background: #f3f4f6;
	color: #374151;
	border: 1px solid var(--afd-border);
}
.afd-sv-modal-chip--price {
	background: var(--afd-accent-lt);
	color: var(--afd-accent);
	border-color: var(--afd-accent-border-soft);
	font-weight: 600;
}

.afd-sv-modal-desc {
	font-size: 14px;
	line-height: 1.6;
	color: #374151;
	margin-bottom: 20px;
}
.afd-sv-modal-desc p:first-child { margin-top: 0; }
.afd-sv-modal-desc p:last-child { margin-bottom: 0; }

.afd-sv-modal-book {
	width: 100%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 20px;
	border: none;
	border-radius: 10px;
	background: var(--rd-site-accent);
	color: #fff;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: filter 0.15s;
}
.afd-sv-modal-book:hover {
	filter: brightness(0.93);
}

/* ── Selected service badge ──────────────────────────────────────────────── */
.afd-selected-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 12px;
	background: var(--afd-accent-lt);
	border: 1px solid var(--afd-accent-border-soft);
	border-radius: 20px;
	font-size: 13px;
	font-weight: 500;
	color: var(--afd-accent);
}
.afd-selected-badge strong { font-weight: 700; }

/* ── Calendar layout ─────────────────────────────────────────────────────── */
.afd-calendar-layout {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	align-items: start;
}
@media (max-width: 640px) {
	.afd-calendar-layout { grid-template-columns: 1fr; }
}

/* ── Calendar panel ──────────────────────────────────────────────────────── */
.afd-cal-panel {
	background: var(--afd-bg);
	border: 1px solid var(--afd-border);
	border-radius: var(--afd-radius);
	padding: 18px;
	position: relative;
	min-height: 280px;
}

.afd-cal-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 14px;
}

.afd-cal-label {
	font-size: 14px;
	font-weight: 600;
	text-transform: capitalize;
}

.afd-cal-arrow {
	width: 30px;
	height: 30px;
	border: 1px solid var(--afd-border);
	border-radius: 7px;
	background: #fff;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--afd-muted);
	transition: border-color .15s, color .15s;
}
.afd-cal-arrow:hover:not(:disabled) { border-color: var(--afd-accent); color: var(--afd-accent); }
.afd-cal-arrow:disabled { opacity: .35; cursor: default; }

.afd-cal-weekdays,
.afd-cal-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 2px;
}

.afd-cal-weekdays {
	margin-bottom: 6px;
}
.afd-cal-weekdays span {
	text-align: center;
	font-size: 11px;
	font-weight: 600;
	color: var(--afd-muted);
	padding: 3px 0;
}

.afd-cal-day {
	aspect-ratio: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 7px;
	font-size: 13px;
	cursor: default;
	color: var(--afd-muted);
	transition: background .12s, color .12s;
}

.afd-cal-day--empty { visibility: hidden; }

.afd-cal-day--past { color: #d1d5db; }

.afd-cal-day--available {
	color: var(--afd-text);
	font-weight: 500;
	cursor: pointer;
}
.afd-cal-day--available:hover {
	background: var(--afd-accent-lt);
	color: var(--afd-accent);
}

.afd-cal-day--selected {
	background: var(--afd-accent) !important;
	color: #fff !important;
	font-weight: 600;
}

.afd-cal-day--today.afd-cal-day--available {
	border: 2px solid var(--afd-accent);
	color: var(--afd-accent);
}
.afd-cal-day--today.afd-cal-day--selected {
	border: none;
}

.afd-cal-spinner {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255,255,255,.75);
	border-radius: var(--afd-radius);
}

/* ── Slots panel ─────────────────────────────────────────────────────────── */
.afd-slots-panel {
	background: var(--afd-bg);
	border: 1px solid var(--afd-border);
	border-radius: var(--afd-radius);
	padding: 18px;
	min-height: 200px;
}

.afd-slots-hint {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 180px;
	color: var(--afd-muted);
	font-size: 13px;
	text-align: center;
}
.afd-slots-hint p { margin: 0; }

.afd-slots-date {
	font-size: 13px;
	font-weight: 600;
	color: var(--afd-text);
	margin-bottom: 14px;
	text-transform: capitalize;
}

.afd-slots-loading {
	display: flex;
	justify-content: center;
	padding: 20px 0;
}

.afd-slots-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
}

.afd-slot {
	padding: 9px 6px;
	text-align: center;
	border: 1px solid var(--afd-border);
	border-radius: 8px;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	background: #fff;
	color: var(--afd-text);
	transition: border-color .12s, background .12s, color .12s;
}
.afd-slot:hover {
	border-color: var(--afd-accent);
	background: var(--afd-accent-lt);
	color: var(--afd-accent);
}
.afd-slot--selected {
	background: var(--afd-accent) !important;
	border-color: var(--afd-accent) !important;
	color: #fff !important;
}

.afd-slots-empty {
	font-size: 13px;
	color: var(--afd-muted);
	text-align: center;
	padding: 20px 0 0;
}

/* ── Booking form step: sidebar summary + form ───────────────────────────── */
.afd-booking-layout {
	display: grid;
	grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
	gap: 32px 48px;
	align-items: start;
	width: 100%;
}

/* WooCommerce confirm step — use full shortcode / content width */
.afd-step--wc .afd-booking-layout {
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 24px 32px;
	align-items: stretch;
}

@media (min-width: 1100px) {
	.afd-step--wc .afd-summary-card {
		display: grid;
		grid-template-columns: minmax(240px, 42%) minmax(0, 1fr);
		grid-template-areas:
			"kicker kicker"
			"hero body";
		min-height: 100%;
	}

	.afd-step--wc .afd-summary-kicker {
		grid-area: kicker;
	}

	.afd-step--wc .afd-summary-hero {
		grid-area: hero;
		aspect-ratio: auto;
		min-height: 220px;
		height: 100%;
	}

	.afd-step--wc .afd-summary-body {
		grid-area: body;
		display: flex;
		flex-direction: column;
		justify-content: center;
	}
}

@media (max-width: 900px) {
	.afd-booking-layout {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.afd-step--wc .afd-summary-card {
		display: block;
	}

	.afd-step--wc .afd-summary-hero {
		aspect-ratio: 16 / 10;
		min-height: 0;
		height: auto;
	}
}

.afd-booking-aside {
	position: sticky;
	top: var(--afd-sticky-top, 8px);
	min-width: 0;
}

@media (max-width: 900px) {
	.afd-booking-aside {
		position: relative;
		top: auto;
	}
}

.afd-booking-summary {
	margin: 0;
}

/* Overview summary card */
.afd-summary-card {
	overflow: hidden;
	border: 1px solid var(--afd-border);
	border-radius: 14px;
	background: #fff;
	box-shadow: var(--afd-shadow);
}

.afd-summary-kicker {
	margin: 0;
	padding: 12px 16px 0;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--afd-muted);
}

.afd-summary-hero {
	position: relative;
	aspect-ratio: 16 / 10;
	background: var(--afd-accent-lt);
	overflow: hidden;
}

.afd-summary-hero-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.afd-summary-hero-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: var(--afd-muted);
	opacity: 0.45;
}

.afd-summary-price-badge {
	position: absolute;
	right: 12px;
	bottom: 12px;
	padding: 6px 12px;
	border-radius: 999px;
	background: rgba(17, 24, 39, 0.82);
	backdrop-filter: blur(6px);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1.2;
}

.afd-summary-body {
	padding: 16px 16px 18px;
}

.afd-summary-title {
	margin: 0 0 10px;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.35;
	color: var(--afd-text);
}

.afd-summary-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 14px;
}

.afd-summary-chip {
	display: inline-flex;
	align-items: center;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	color: var(--afd-accent);
	background: var(--afd-accent-lt);
	border: 1px solid var(--afd-accent-border-soft);
}

.afd-summary-details {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0;
	border-top: 1px solid var(--afd-border);
}

.afd-summary-detail {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 12px 0;
	border-bottom: 1px solid var(--afd-border);
}
.afd-summary-detail:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.afd-summary-detail-icon {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: var(--afd-accent-lt);
	color: var(--afd-accent);
}

.afd-summary-detail-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	padding-top: 2px;
}

.afd-summary-detail-label {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--afd-muted);
}

.afd-summary-detail-value {
	font-size: 14px;
	font-weight: 600;
	color: var(--afd-text);
	line-height: 1.4;
	word-break: break-word;
}

.afd-booking-main {
	min-width: 0;
}

.afd-step--wc .afd-booking-main {
	display: flex;
	flex-direction: column;
}

.afd-step--wc .afd-booking-main .afd-form {
	max-width: none;
	width: 100%;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.afd-checkout-panel {
	padding: 20px 22px 22px;
	border: 1px solid var(--afd-border);
	border-radius: 12px;
	background: #fafbfc;
	width: 100%;
	box-sizing: border-box;
}

.afd-step--wc .afd-checkout-panel {
	flex: 1;
	display: flex;
	flex-direction: column;
	min-height: 280px;
}

.afd-step--wc .afd-form-group--notes {
	flex: 1;
	display: flex;
	flex-direction: column;
	margin-bottom: 16px;
}

.afd-step--wc .afd-form-group--notes .afd-textarea {
	min-height: 110px;
	flex: 1;
}

.afd-step--wc .afd-submit-btn--checkout {
	width: 100%;
	justify-content: center;
	padding: 14px 24px;
	font-size: 15px;
	margin-top: auto;
}

/* ── Booking form (legacy non-WC step keeps a readable line length) ─────── */
.afd-step:not(.afd-step--wc) .afd-booking-main .afd-form {
	max-width: 560px;
}

.afd-form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}
@media (max-width: 480px) {
	.afd-form-row { grid-template-columns: 1fr; }
}

.afd-form-group { margin-bottom: 14px; }

.afd-label {
	display: block;
	margin-bottom: 5px;
	font-size: 13px;
	font-weight: 500;
	color: var(--afd-text);
}
.afd-req { color: #ef4444; margin-left: 2px; }

.afd-input,
.afd-textarea {
	width: 100%;
	padding: 9px 12px;
	border: 1px solid var(--afd-border);
	border-radius: 8px;
	font-size: 14px;
	color: var(--afd-text);
	background: #fff;
	outline: none;
	transition: border-color .15s, box-shadow .15s;
	font-family: inherit;
}
.afd-input:focus,
.afd-textarea:focus {
	border-color: var(--afd-accent);
	box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
.afd-textarea { resize: vertical; }

.afd-form-error {
	margin-bottom: 12px;
	padding: 10px 14px;
	border-radius: 8px;
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #dc2626;
	font-size: 13.5px;
}

.afd-form-intro {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 0 0 18px;
	padding: 0;
	background: transparent;
	border: none;
	border-radius: 0;
	color: #475569;
	font-size: 14px;
	line-height: 1.55;
}

.afd-form-intro p {
	margin: 0;
}

.afd-form-intro-icon {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: #ecfdf5;
	color: var(--afd-green);
}

.afd-submit-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 11px 28px;
	background: var(--afd-accent);
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: filter .15s;
	font-family: inherit;
}
.afd-submit-btn:hover { filter: brightness(0.93); }
.afd-submit-btn:disabled { opacity: .6; cursor: default; }

/* ── Confirmation ────────────────────────────────────────────────────────── */
.afd-confirm {
	max-width: 420px;
	margin: 0 auto;
	text-align: center;
	padding: 40px 20px;
}

.afd-confirm-icon { margin-bottom: 18px; }

.afd-confirm-title {
	margin: 0 0 8px;
	font-size: 22px;
	font-weight: 700;
}

.afd-confirm-msg {
	margin: 0 0 20px;
	font-size: 15px;
	color: var(--afd-muted);
	line-height: 1.5;
}

.afd-confirm-details {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 28px;
	padding: 16px;
	background: #f9fafb;
	border: 1px solid var(--afd-border);
	border-radius: 10px;
	text-align: left;
}

.afd-confirm-row {
	display: flex;
	justify-content: space-between;
	font-size: 13.5px;
}
.afd-confirm-row span:first-child { color: var(--afd-muted); }
.afd-confirm-row span:last-child  { font-weight: 600; }

.afd-new-btn {
	padding: 10px 24px;
	border: 1px solid var(--afd-border);
	border-radius: 8px;
	background: #fff;
	font-size: 13.5px;
	font-weight: 500;
	color: var(--afd-text);
	cursor: pointer;
	transition: border-color .15s;
	font-family: inherit;
}
.afd-new-btn:hover { border-color: var(--afd-accent); color: var(--afd-accent); }

/* ── Spinner ─────────────────────────────────────────────────────────────── */
.afd-spinner {
	display: inline-block;
	width: 18px;
	height: 18px;
	border: 2px solid rgba(37,99,235,.2);
	border-top-color: var(--afd-accent);
	border-radius: 50%;
	animation: afd-spin .7s linear infinite;
	flex-shrink: 0;
}
.afd-spinner--white {
	border-color: rgba(255,255,255,.3);
	border-top-color: #fff;
}

@keyframes afd-spin {
	to { transform: rotate(360deg); }
}

/* ── Empty state ─────────────────────────────────────────────────────────── */
.afd-empty {
	padding: 32px;
	text-align: center;
	color: var(--afd-muted);
	font-size: 14px;
	border: 1px dashed var(--afd-border);
	border-radius: var(--afd-radius);
}

/* ── Group size modal ────────────────────────────────────────────────────── */
.afd-group-modal {
	position: fixed;
	inset: 0;
	z-index: 100002;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	opacity: 0;
	visibility: hidden;
	transition: opacity .2s ease, visibility .2s ease;
}
.afd-group-modal.is-open {
	opacity: 1;
	visibility: visible;
}
.afd-group-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.55);
}
.afd-group-modal-panel {
	position: relative;
	width: min(100%, 420px);
	padding: 24px;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
}
.afd-group-modal-close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 36px;
	height: 36px;
	border: none;
	border-radius: 999px;
	background: #f3f4f6;
	color: #374151;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}
.afd-group-modal-title {
	margin: 0 0 8px;
	font-size: 20px;
	font-weight: 700;
	color: var(--afd-text);
}
.afd-group-modal-subtitle {
	margin: 0 0 20px;
	font-size: 14px;
	color: var(--afd-muted);
	line-height: 1.45;
}
.afd-group-qty {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin-bottom: 10px;
}
.afd-group-qty-btn {
	width: 44px;
	height: 44px;
	border: 1px solid var(--afd-border);
	border-radius: 10px;
	background: #fff;
	font-size: 22px;
	line-height: 1;
	color: var(--afd-text);
	cursor: pointer;
}
.afd-group-qty-btn:hover {
	border-color: var(--afd-accent);
	color: var(--afd-accent);
}
.afd-group-qty-input {
	width: 88px;
	height: 44px;
	border: 1px solid var(--afd-border);
	border-radius: 10px;
	text-align: center;
	font-size: 18px;
	font-weight: 700;
	color: var(--afd-text);
}
.afd-group-range {
	margin: 0 0 16px;
	text-align: center;
	font-size: 13px;
	color: var(--afd-muted);
}
.afd-group-total {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 16px;
	margin-bottom: 16px;
	border-radius: 12px;
	background: #f9fafb;
}
.afd-group-total-label {
	font-size: 14px;
	color: var(--afd-muted);
}
.afd-group-total-value {
	font-size: 18px;
	font-weight: 700;
	color: var(--afd-accent);
}
.afd-group-error {
	margin: 0 0 12px;
	font-size: 13px;
	color: #dc2626;
	text-align: center;
}
.afd-group-continue {
	width: 100%;
	padding: 13px 18px;
	border: none;
	border-radius: 10px;
	background: var(--rd-site-accent);
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	font-family: inherit;
}
.afd-group-continue:hover {
	filter: brightness(0.95);
}

/* ── Reschedule page (asr-) ─────────────────────────────────────────────── */
.asr-wrap {
	max-width: 900px;
	margin: 0 auto;
	padding: 20px 16px 40px;
}

.asr-message-card {
	background: #fff;
	border: 1px solid var(--afd-border);
	border-radius: var(--afd-radius);
	padding: 24px 20px;
	text-align: center;
	box-shadow: var(--afd-shadow);
}

.asr-message-card h1,
.asr-message-card h2 {
	margin: 0 0 10px;
	font-size: 20px;
	color: var(--afd-text);
}

.asr-message-card p {
	margin: 0;
	color: var(--afd-muted);
	line-height: 1.5;
}

.asr-message-card--success {
	border-color: #bbf7d0;
	background: #f0fdf4;
}

.asr-header {
	margin-bottom: 14px;
}

.asr-header h1 {
	margin: 0 0 4px;
	font-size: 22px;
	font-weight: 700;
	color: var(--afd-text);
}

.asr-header p {
	margin: 0;
	font-size: 14px;
	color: var(--afd-muted);
}

.asr-current {
	border: 1px solid var(--afd-border);
	border-radius: var(--afd-radius);
	background: var(--afd-bg);
	padding: 12px 14px;
	margin-bottom: 16px;
}

.asr-current-head {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin-bottom: 8px;
}

.asr-current-label {
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: var(--afd-muted);
}

.asr-current-title {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.35;
	color: var(--afd-text);
}

.asr-current-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 14px;
	font-size: 13px;
	color: var(--afd-text);
}

.asr-current-meta span {
	display: inline-flex;
	align-items: baseline;
	gap: 5px;
}

.asr-current-meta em {
	font-style: normal;
	font-size: 10px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--afd-muted);
}

.asr-picker-title {
	margin: 0 0 12px;
	font-size: 15px;
	font-weight: 600;
	color: var(--afd-text);
}

.asr-actions {
	margin-top: 16px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
}

.asr-actions .afd-submit-btn {
	min-width: 220px;
}

.asr-error {
	margin: 0;
	font-size: 13px;
	color: #dc2626;
}

.asr-state--success {
	margin-top: 8px;
}

@media (max-width: 640px) {
	.asr-actions .afd-submit-btn {
		width: 100%;
	}
}
