/**
 * Catalog Component Styles
 *
 * Amazon-style catalog grid for services and products
 *
 * @package MphbGuestServices
 * @since 2.0.0
 */

/* ==========================================================================
   Category Tabs
   ========================================================================== */

.gs-catalog-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	border-bottom: 2px solid var(--gs-color-border);
	margin-bottom: 0;
}

.gs-catalog-tab {
	padding: 12px 20px;
	border: none;
	background: none;
	font-size: 15px;
	font-weight: 500;
	color: var(--gs-color-text-soft);
	cursor: pointer;
	position: relative;
	transition: color 0.15s;
	white-space: nowrap;
}

.gs-catalog-tab::after {
	content: '';
	position: absolute;
	bottom: -2px;
	left: 0;
	right: 0;
	height: 2px;
	background: transparent;
	transition: background 0.15s;
}

.gs-catalog-tab:hover {
	color: var(--gs-color-text);
}

.gs-catalog-tab.is-active {
	color: var(--gs-color-primary, #c49a3a);
	font-weight: 600;
}

.gs-catalog-tab.is-active::after {
	background: var(--gs-color-primary, #c49a3a);
}

.gs-catalog-tab-panel.is-hidden {
	display: none;
}

/* Remove top margin from catalog section inside tab panel — spacing handled by parent gap */
.gs-catalog-tab-panel > .gs-my-lg {
	margin-top: 0;
}

@media (max-width: 480px) {
	.gs-catalog-tabs {
		gap: 0;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	.gs-catalog-tabs::-webkit-scrollbar {
		display: none;
	}

	.gs-catalog-tab {
		padding: 8px 14px;
		font-size: 14px;
	}
}

/* Category Section Styles */
.gs-my-lg h5 {
	font-size: 26px;
	font-weight: 700;
	color: var(--gs-color-text, #0F1111);
	margin: 0 0 12px 0;
	line-height: 1.3;
}

.gs-my-lg > p {
	font-size: 16px;
	color: var(--gs-color-text-soft, #475569);
	line-height: 1.5;
	margin: 0 0 20px 0;
}

/* Category Heading (replaces tabs) — vertical bar like h1 */
.gs-catalog-heading {
	font-size: 20px;
	font-weight: 600;
	color: var(--gs-color-text);
	margin: 16px 0 4px;
	line-height: 1.3;
	padding-left: 10px;
	border-left: 3px solid var(--gs-color-primary);
}

.gs-catalog-heading:first-of-type {
	margin-top: 0;
}

/* ==========================================================================
   Catalog Scroll Carousel
   ========================================================================== */

/* Wrapper — clips gradient pseudo-elements */
.mphb-gs-items-scroll-wrap {
	position: relative;
}

/* Right edge fade indicator */
.mphb-gs-items-scroll-wrap::after {
	content: '';
	position: absolute;
	right: 0;
	top: 0;
	bottom: 0;
	width: 32px;
	background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.06));
	pointer-events: none;
	z-index: 2;
	opacity: 0;
	transition: opacity 0.3s ease;
}

/* Left edge fade indicator */
.mphb-gs-items-scroll-wrap::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 32px;
	background: linear-gradient(to left, transparent, rgba(0, 0, 0, 0.06));
	pointer-events: none;
	z-index: 2;
	opacity: 0;
	transition: opacity 0.3s ease;
}

/* Show/hide indicators based on scroll position (JS-controlled) */
.mphb-gs-items-scroll-wrap.can-scroll-right::after {
	opacity: 1;
}

.mphb-gs-items-scroll-wrap.can-scroll-left::before {
	opacity: 1;
}

/* Scroll Navigation Arrows (desktop only) */
.mphb-gs-scroll-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 3;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 3px solid var(--gs-color-primary-strong, #996f0f);
	background: var(--gs-color-surface);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	color: var(--gs-color-primary-strong, #996f0f);
	font-size: 28px;
	font-weight: 300;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.2s ease, background 0.15s ease;
	padding: 0;
	margin: 0;
	line-height: 1;
	/* Prevent CozyStay theme interference */
	outline: none;
	outline-offset: 0;
	text-decoration: none;
	min-width: 0;
	max-width: 40px;
}

.mphb-gs-scroll-arrow:focus,
.mphb-gs-scroll-arrow:focus-visible {
	outline: none;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.mphb-gs-scroll-arrow--left {
	left: 8px;
}

.mphb-gs-scroll-arrow--right {
	right: 8px;
}

/* Show arrows on hover */
.mphb-gs-items-scroll-wrap:hover .mphb-gs-scroll-arrow {
	opacity: 1;
}

.mphb-gs-scroll-arrow:focus-visible {
	opacity: 1;
}

.mphb-gs-scroll-arrow:hover {
	background: var(--gs-color-surface);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
	border-color: var(--gs-color-primary-strong, #996f0f);
}

/* Hide arrow when can't scroll in that direction */
.mphb-gs-items-scroll-wrap:not(.can-scroll-left) .mphb-gs-scroll-arrow--left,
.mphb-gs-items-scroll-wrap:not(.can-scroll-right) .mphb-gs-scroll-arrow--right {
	display: none;
}

/* Hide arrows on mobile, tablet, and touch devices */
@media (max-width: 768px) {
	.mphb-gs-scroll-arrow {
		display: none !important;
	}
}

@media (hover: none) {
	.mphb-gs-scroll-arrow {
		display: none !important;
	}
}

/* Catalog Horizontal Scroll List */
.mphb-gs-items-list {
	list-style: none;
	padding: 8px 0;
	margin: 0;
	display: flex;
	gap: 16px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.mphb-gs-items-list::-webkit-scrollbar {
	display: none;
}

/* Product Card - Vertical Layout */
.mphb-gs-item-card {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--gs-color-border);
	border-radius: 8px;
	background: var(--gs-color-surface);
	overflow: hidden;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
	box-shadow: 0 2px 5px rgba(15, 17, 17, 0.15);
	/* Carousel card sizing — desktop: 4 cards + peek of 5th */
	flex: 0 0 calc(25% - 24px);
	scroll-snap-align: start;
	min-width: 200px;
}

.mphb-gs-item-card:hover {
	box-shadow: 0 4px 12px rgba(15, 17, 17, 0.25);
	transform: translateY(-2px);
}

/* Product Image */
.mphb-gs-item-thumb {
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: var(--gs-color-surface-alt);
	display: flex;
	align-items: center;
	justify-content: center;
}

.mphb-gs-item-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: opacity 0.3s ease;
}

/* Card Content */
.mphb-gs-item-body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 12px;
	flex: 1;
}

/* Product Title */
.mphb-gs-item-title {
	font-size: 16px;
	font-weight: 600;
	color: var(--gs-color-text, #0F1111);
	margin: 0;
	line-height: 1.3;
	min-height: 42px;
}

/* Product Price */
.mphb-gs-item-price {
	font-size: 20px;
	font-weight: 700;
	color: var(--gs-color-text, #0F1111);
	margin: 4px 0;
}

/* Description — uses --gs-color-text-soft so contrast holds in both themes
 * (light #475569 → 7.4:1 on white, dark #b0b8c4 → 7.2:1 on #1a1d23 surface).
 * Avoid the bare --gs-text-muted token (undefined → falls back to #565959,
 * which drops to ~3.5:1 on dark surface and fails WCAG AA). */
.mphb-gs-item-desc {
	margin: 0;
	color: var(--gs-color-text-soft, #475569);
	font-size: 14px;
	line-height: 1.4;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
}

/* Status Messages */
.mphb-gs-item-disabled {
	margin: 0;
	color: var(--gs-color-error-text);
	font-weight: 600;
	font-size: 14px;
}

.mphb-gs-item-warning {
	margin: 0;
	color: var(--gs-color-warning-text);
	font-size: 13px;
	background: var(--gs-color-warning-bg);
	padding: 8px;
	border-radius: 4px;
}

.mphb-gs-item-unavailable {
	margin: 0;
	color: var(--gs-color-error-text);
	font-size: 14px;
	font-weight: 600;
}

.mphb-gs-item-muted {
	margin: 0;
	color: var(--gs-color-text-soft);
	font-style: italic;
	font-size: 14px;
}

/* Order Form */
.mphb-gs-order-form {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: auto;
}

/* Form Fields */
.mphb-gs-item-field {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 0;
}

.mphb-gs-item-field--inline {
	flex-direction: row;
	align-items: center;
	gap: 8px;
}

.mphb-gs-item-field--qty {
	margin-top: 0;
}

.mphb-gs-item-field > span,
.mphb-gs-item-field > label {
	font-size: 14px;
	font-weight: 600;
	color: var(--gs-color-text, #0F1111);
}

.mphb-gs-item-field input[type=date],
.mphb-gs-item-field select,
.mphb-gs-item-field textarea {
	width: 100%;
	padding: 8px;
	border-radius: 4px;
	border: 1px solid var(--gs-color-border);
	background: var(--gs-color-surface);
	color: var(--gs-color-text);
	font-size: 14px;
}

.mphb-gs-item-field input[type=date]:focus,
.mphb-gs-item-field select:focus,
.mphb-gs-item-field textarea:focus {
	outline: 2px solid var(--gs-color-primary, #3b82f6);
	outline-offset: 1px;
	border-color: var(--gs-color-primary, #3b82f6);
}

.mphb-gs-item-field textarea {
	min-height: 60px;
	resize: vertical;
}

.mphb-gs-item-field fieldset {
	border: none;
	padding: 0;
	margin: 0;
}

.mphb-gs-item-field legend {
	padding: 0;
	margin: 0 0 8px;
	font-size: 14px;
	font-weight: 600;
	color: var(--gs-color-text, #0F1111);
}

/* Radio Buttons */
.mphb-gs-radio-group {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.mphb-gs-radio-label {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
}

.mphb-gs-radio-label input[type=radio] {
	margin: 0;
	cursor: pointer;
	width: 16px;
	height: 16px;
}

.mphb-gs-radio-label span {
	font-size: 14px;
	color: var(--gs-color-text, #0F1111);
}

/* Time Selection */
.mphb-gs-time-select {
	display: flex;
	align-items: center;
	gap: 8px;
}

.mphb-gs-time-sep {
	font-weight: 700;
	color: var(--gs-color-text, #0F1111);
	font-size: 18px;
}

.mphb-gs-help {
	font-size: 12px;
	color: var(--gs-color-text-soft, #475569);
}

/* Action Row — stepper + submit on same line */
.mphb-gs-action-row {
	display: flex;
	flex-wrap: nowrap;
	align-items: stretch;
	gap: 8px;
	margin-top: 8px;
}

/* Quantity Stepper */
.mphb-gs-qty-stepper {
	display: flex;
	align-items: center;
	border: 1px solid var(--gs-color-border);
	border-radius: 8px;
	overflow: hidden;
	flex-shrink: 0;
	height: 44px;
}

.mphb-gs-qty-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 100%;
	border: none;
	background: transparent;
	color: var(--gs-color-text);
	font-size: 18px;
	font-weight: 500;
	cursor: pointer;
	padding: 0;
	transition: background-color 0.15s ease;
	-webkit-tap-highlight-color: transparent;
	user-select: none;
}

.mphb-gs-qty-btn:hover:not(:disabled) {
	background: var(--gs-color-surface-hover);
}

.mphb-gs-qty-btn:active:not(:disabled) {
	background: var(--gs-color-surface-hover);
}

.mphb-gs-qty-btn:disabled {
	opacity: 0.3;
	cursor: not-allowed;
}

.mphb-gs-qty-display {
	min-width: 28px;
	text-align: center;
	font-size: 15px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	color: var(--gs-color-text);
	user-select: none;
}

/* Static quantity badge (when max qty is 1) */
.mphb-gs-qty-static {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 1px solid var(--gs-color-border);
	border-radius: 8px;
	font-size: 15px;
	font-weight: 600;
	color: var(--gs-color-text);
	flex-shrink: 0;
	user-select: none;
}

/* Submit Button — matches .gs-btn .gs-btn-primary for consistency */
.mphb-gs-item-submit {
	padding: 12px 16px;
	border: none;
	background: var(--gs-color-primary-strong, #996f0f);
	color: #fff;
	border-radius: 8px;
	font-weight: 600;
	font-size: 16px;
	cursor: pointer;
	flex: 1 1 auto;
	width: auto;
	min-width: 0;
	margin-top: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	transition: background-color 0.2s ease;
}

.mphb-gs-item-submit:hover:not(:disabled) {
	background: var(--gs-color-primary-strong-hover, #8f6505);
}

.mphb-gs-item-submit:active:not(:disabled) {
	background: var(--gs-color-primary-strong-hover, #8f6505);
}

.mphb-gs-item-submit:disabled {
	background: var(--gs-color-text-muted, #9ca3af);
	color: #fff;
	opacity: 0.6;
	cursor: not-allowed;
}


/* Time picker inline inside catalog cards */
.mphb-gs-order-form .gs-field-time-split {
	display: flex !important;
	flex-direction: row !important;
	align-items: center;
	gap: 10px;
	margin-bottom: 0;
}

.mphb-gs-order-form .gs-field-time-split .gs-label {
	display: inline !important;
	margin-bottom: 0 !important;
	white-space: nowrap;
	font-size: 14px;
}

.mphb-gs-order-form .gs-field-time-split .gs-time-picker {
	margin-top: 0 !important;
}

.mphb-gs-order-form .gs-time-picker select {
	height: 36px;
	line-height: 36px;
	font-size: 14px;
}

.mphb-gs-order-form .gs-time-picker .gs-time-hour,
.mphb-gs-order-form .gs-time-picker .gs-time-minute {
	width: 56px;
	min-width: 56px;
	max-width: 56px;
}

.mphb-gs-order-form .gs-time-separator {
	font-size: 16px;
}

/* Equipment Rental Carousel */
.gs-equipment-grid {
	list-style: none;
	padding: 8px 0;
	margin: 0;
	display: flex;
	gap: 16px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.gs-equipment-grid::-webkit-scrollbar {
	display: none;
}

/* Equipment Card */
.gs-equipment-card {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--gs-color-border);
	border-radius: 8px;
	background: var(--gs-color-surface);
	overflow: hidden;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
	box-shadow: 0 2px 5px rgba(15, 17, 17, 0.15);
	/* Carousel card sizing — desktop: 4 cards + peek of 5th */
	flex: 0 0 calc(25% - 24px);
	scroll-snap-align: start;
	min-width: 200px;
}

.gs-equipment-card:hover {
	box-shadow: 0 4px 12px rgba(15, 17, 17, 0.25);
	transform: translateY(-2px);
}

.gs-equipment-image {
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: var(--gs-color-surface-alt);
}

.gs-equipment-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.gs-equipment-content {
	padding: 12px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
}

.gs-equipment-name {
	font-size: 16px;
	font-weight: 600;
	color: var(--gs-color-text);
	margin: 0;
	line-height: 1.3;
}

/* Description — uses --gs-color-text-soft so contrast holds in both themes
 * (light #475569 → 7.4:1 on white, dark #b0b8c4 → 7.2:1 on #1a1d23 surface).
 * The legacy --gs-text-muted token was undefined and fell back to #565959,
 * which dropped to ~2.3:1 on dark navy and failed WCAG AA. */
.gs-equipment-description {
	font-size: 14px;
	color: var(--gs-color-text-soft);
	margin: 0;
	line-height: 1.4;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
}

.gs-equipment-price {
	font-size: 16px;
	font-weight: 600;
	color: var(--gs-color-text);
	margin-top: auto;
}

.gs-equipment-prices {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 8px;
}

.gs-equipment-price-tag {
	display: inline-flex;
	align-items: baseline;
	gap: 2px;
	padding: 4px 8px;
	background: var(--gs-color-surface-alt);
	border-radius: 4px;
	font-size: 13px;
	font-weight: 600;
	color: var(--gs-color-text);
}

.gs-equipment-price-tag .gs-price-unit {
	font-size: 11px;
	font-weight: 400;
	color: var(--gs-color-text-soft);
}

.gs-equipment-hours {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 8px;
	font-size: 13px;
	color: var(--gs-color-text-soft, #475569);
}

.gs-equipment-hours svg {
	flex-shrink: 0;
	opacity: 0.7;
}

.gs-price-from {
	font-size: 12px;
	font-weight: 400;
	color: var(--gs-color-text-soft, #475569);
	margin-right: 4px;
}

.gs-equipment-unavailable {
	color: var(--gs-color-error-text);
	font-size: 14px;
	font-weight: 500;
}

/* Equipment Section & Category Styles */
.gs-equipment-section {
	margin-bottom: 24px;
}

.gs-category-group {
	margin-bottom: 32px;
}

.gs-category-title {
	font-size: 1.25rem;
	font-weight: 600;
	margin: 0 0 8px 0;
	color: var(--gs-color-text, #0F1111);
}

.gs-category-description {
	margin: 0 0 16px 0;
	color: var(--gs-color-text-soft, #475569);
}

.gs-price-value {
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--gs-color-primary, #2563eb);
}

.gs-price-unit {
	font-size: 0.75rem;
	color: var(--gs-color-text-soft, #475569);
}

.gs-equipment-rent-btn {
	width: 100%;
	margin-top: auto;
}

/* Locked state — applied alongside the inert HTML attribute when a panel
   is in cutoff (or test-mode-bypassed). inert blocks clicks and tab
   focus; this rule makes the visual state match the disabled behaviour
   so order buttons don't appear clickable. */
.gs-form-locked {
	opacity: 0.55;
	filter: saturate(0.7);
	cursor: not-allowed;
	position: relative;
}
.gs-form-locked button,
.gs-form-locked a.gs-btn,
.gs-form-locked .gs-btn,
.gs-form-locked .mphb-gs-item-submit {
	cursor: not-allowed;
	pointer-events: none;
}

/* Responsive Design — Catalog Scroll */
@media (max-width: 768px) {
	.mphb-gs-items-list {
		gap: 12px;
	}

	/* Tablet: 2 cards + peek of 3rd */
	.mphb-gs-item-card {
		flex: 0 0 calc(50% - 20px);
		min-width: 180px;
	}

	/* Tablet: 2 equipment cards + peek */
	.gs-equipment-card {
		flex: 0 0 calc(50% - 20px);
		min-width: 180px;
	}

	.gs-equipment-grid {
		gap: 12px;
	}
}

/* Car Type Grid — Horizontal Scroll Carousel (same behavior as equipment) */
.gs-car-type-grid {
	list-style: none;
	padding: 8px 0;
	margin: 0;
	display: flex;
	gap: 16px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.gs-car-type-grid::-webkit-scrollbar {
	display: none;
}

/* Gearbox choice sits under the vehicle grid: it must breathe (≥ 16 px), never touch it. */
.gs-car-gearbox {
	margin-top: var(--gs-space-xl);
}

.gs-car-gearbox .gs-hint {
	margin-top: var(--gs-space-sm);
}

/* Car cards use same sizing as equipment cards */
/* Browsers ship <fieldset> with `min-width: min-content`, which lets the
   intrinsic width of inner content (here the car-card image carousel)
   blow past the form/viewport on mobile — the whole car-rental panel
   was rendering ~700px wide on a 312px viewport. Reset on our wrapper
   so the fieldset honours its parent's width and the inner scroll-wrap
   handles horizontal overflow on its own. */
.gs-fieldset {
	min-width: 0;
}

/* Service terms, stated before the guest commits rather than at handover.
   Shared by the car rental and the airport transfer — one component, because
   it answers the same question in both: what am I actually agreeing to?
   A <details> and not a hover tooltip: a phone has no hover, and these are
   terms — no deposit but damage is the renter's to pay, a private car, a free
   baby seat — that must be readable, not discovered. Spacing matches the
   surrounding field blocks so the summary never sits flush against the list
   that follows. */
.gs-service-terms {
	margin: 0 0 20px;
	padding: 12px 16px;
	border: 1px solid var(--gs-color-border);
	border-radius: 8px;
	background: var(--gs-color-surface-alt);
}

.gs-service-terms__summary {
	cursor: pointer;
	font-weight: 600;
	font-size: 14px;
	color: var(--gs-color-text);
}

.gs-service-terms__list {
	margin: 12px 0 0;
	padding-left: 20px;
	line-height: 1.7;
	font-size: 13px;
	color: var(--gs-color-text-soft);
}

.gs-car-card {
	flex: 0 0 calc(25% - 24px);
	scroll-snap-align: start;
	min-width: 200px;
}

/* Highlight the row matching today's season — guests instantly see which
   rate applies right now. The pill keeps the cue accessible (text + colour). */
.gs-car-card__price-table tr.is-current-season {
	background: rgba(131, 111, 83, 0.18); /* EVD gold tint */
	box-shadow: inset 3px 0 0 #836f53;
}
.gs-car-card__price-table tr.is-current-season td {
	font-weight: 700;
	color: var(--gs-color-text, #0f172a);
}
.gs-car-card__season-pill {
	display: inline-block;
	margin-left: 6px;
	padding: 1px 7px;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #fff;
	background: #836f53;
	border-radius: 999px;
	vertical-align: middle;
}

@media (max-width: 1024px) {
	.gs-car-card {
		flex: 0 0 calc(33.333% - 11px);
		min-width: 200px;
	}
}

@media (max-width: 480px) {
	.gs-car-card {
		flex: 0 0 calc(100% - 48px);
		min-width: 0;
	}
}

@media (max-width: 480px) {
	/* Mobile: 1 card + peek of 2nd */
	.mphb-gs-item-card {
		flex: 0 0 calc(100% - 48px);
		min-width: 0;
	}

	.mphb-gs-item-title {
		font-size: 15px;
		min-height: auto;
	}

	.mphb-gs-item-price {
		font-size: 18px;
	}

	/* Mobile: 1 equipment card + peek */
	.gs-equipment-card {
		flex: 0 0 calc(100% - 48px);
		min-width: 0;
	}
}

/* ==========================================================================
   Modal Styles
   ========================================================================== */

.gs-modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
}

.gs-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
}

.gs-modal-container {
	position: relative;
	background: var(--gs-color-surface);
	border-radius: 8px;
	max-width: 480px;
	width: 90%;
	max-height: 90vh;
	display: flex;
	flex-direction: column;
}

.gs-modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px;
	border-bottom: 1px solid var(--gs-color-border);
}

.gs-modal-title {
	margin: 0;
	font-size: 1.125rem;
}

.gs-modal-close {
	background: none;
	border: none;
	font-size: 1.5rem;
	cursor: pointer;
	color: var(--gs-color-text-soft, #475569);
	line-height: 1;
}

.gs-modal-body {
	padding: 16px;
	overflow-y: auto;
	flex: 1;
}

.gs-modal-footer {
	display: flex;
	gap: 12px;
	justify-content: flex-end;
	padding: 16px;
	border-top: 1px solid var(--gs-color-border);
}

/* ==========================================================================
   Form Styles
   ========================================================================== */

.gs-form-group {
	margin-bottom: 16px;
}

.gs-form-label {
	display: block;
	font-weight: 500;
	margin-bottom: 4px;
}

.gs-form-input,
.gs-form-select,
.gs-form-textarea {
	width: 100%;
	padding: 8px 12px;
	border: 1px solid var(--gs-color-border);
	background: var(--gs-color-surface);
	color: var(--gs-color-text);
	border-radius: 4px;
	font-size: 1rem;
}

.gs-form-hint {
	display: block;
	font-size: 0.75rem;
	color: var(--gs-color-text-soft, #475569);
	margin-top: 4px;
}

/* ========================================
 * A la carte — delivery-day chips
 * ======================================== */

.gs-alc-date-row {
	display: flex;
	flex-wrap: wrap;
	gap: var(--gs-space-sm, 8px);
}

.gs-alc-date-chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: var(--gs-space-sm, 8px) var(--gs-space-lg, 16px);
	border: 2px solid var(--gs-color-border, #e5e7eb);
	border-radius: var(--gs-radius-full, 9999px);
	background: var(--gs-color-surface, #ffffff);
	color: var(--gs-color-text, #0f172a);
	font-size: var(--gs-font-size-base, 14px);
	font-weight: var(--gs-font-weight-medium, 600);
	line-height: var(--gs-line-height-tight, 1.2);
	white-space: nowrap;
	cursor: pointer;
	transition: background-color var(--gs-transition-fast, 150ms ease),
		border-color var(--gs-transition-fast, 150ms ease);
}

/* Hover must not borrow the selected chip's primary border: with the same
   accent on both, a hovered day and the chosen day only differ by a faint
   tint and the font weight. A neutral, darker border reads as "clickable"
   while the accent stays exclusive to .is-active. */
.gs-alc-date-chip:hover {
	background: var(--gs-color-surface-hover, #f3f4f6);
	border-color: var(--gs-color-text-soft, #475569);
}

.gs-alc-date-chip:focus-visible {
	outline: 2px solid var(--gs-color-primary, #c49a3a);
	outline-offset: 2px;
}

/* Selected day. A primary-tinted surface (rather than a filled primary pill
   with inverse text) keeps the label on a background the text token already
   contrasts with — the same rule holds in light and in dark mode. */
.gs-alc-date-chip.is-active {
	border-color: var(--gs-color-primary, #c49a3a);
	background: color-mix(in srgb, var(--gs-color-primary, #c49a3a) 16%, var(--gs-color-surface, #ffffff));
	font-weight: var(--gs-font-weight-bold, 700);
}

/* A day whose order slots are all taken stays selectable — the guest may want
   to look at it — but reads as unavailable for a new order. */
.gs-alc-date-chip.is-full {
	border-style: dashed;
	color: var(--gs-color-text-soft, #475569);
}

/* Own top margin from the shared scale: `margin: 0` here beat the .gs-mt-sm
   utility on the element (same specificity, later rule) and glued the notice
   to the chip row. */
.gs-alc-day-full {
	margin: var(--gs-space-lg, 16px) 0 0;
	color: var(--gs-color-text-soft, #475569);
	font-size: var(--gs-font-size-sm, 12px);
}

/* Several days can hold orders now, so each cancel button names its day.
   Scoped to the a la carte block: .gs-cancel-row is shared, unstyled markup. */
.gs-alc-wrapper .gs-cancel-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: var(--gs-space-sm, 8px);
	/* Each row now carries a Modify link, a Cancel button and a window/locked
	   note, so consecutive rows read as blocks, not as list lines: 8px glued
	   them together. Shared scale, no per-page hack. */
	margin-top: var(--gs-space-lg, 16px);
}

.gs-alc-wrapper .gs-cancel-day {
	color: var(--gs-color-text-soft, #475569);
	font-size: var(--gs-font-size-sm, 12px);
	font-weight: var(--gs-font-weight-medium, 600);
}

/* Edit affordance + locked read-only state (spec §6). Every unlocked order
   carries a "Modify" link next to its Cancel button; once it locks both
   disappear and the row states why. Vertical rhythm comes from the shared
   scale in this component file rather than a utility class on the element —
   the utilities lose to the component rules here (same lesson as
   .gs-alc-day-full above). */
.gs-alc-wrapper .gs-alc-edit-link {
	font-size: var(--gs-font-size-sm, 12px);
	font-weight: var(--gs-font-weight-medium, 600);
}

.gs-alc-wrapper .gs-alc-locked-note {
	color: var(--gs-color-text-soft, #475569);
	font-size: var(--gs-font-size-sm, 12px);
}

.gs-alc-wrapper .gs-alc-edit-banner {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: var(--gs-space-sm, 8px);
	/* Own vertical rhythm: the form below carries .gs-my-lg (12px), which on
	   its own left the banner 12px from the form it describes. */
	margin: var(--gs-space-xl, 20px) 0 var(--gs-space-lg, 16px);
	padding: var(--gs-space-md, 12px) var(--gs-space-lg, 16px);
	border: 1px solid var(--gs-color-primary, #c49a3a);
	border-radius: var(--gs-radius-md, 12px);
	background: color-mix(in srgb, var(--gs-color-primary, #c49a3a) 12%, var(--gs-color-surface, #ffffff));
	color: var(--gs-color-text, #0f172a);
	font-size: var(--gs-font-size-sm, 12px);
}

.gs-alc-wrapper .gs-alc-edit-banner__label {
	font-weight: var(--gs-font-weight-bold, 700);
}

.gs-alc-warning-icon {
	width: 14px;
	height: 14px;
	vertical-align: middle;
	margin-right: var(--gs-space-xs, 4px);
	fill: currentColor;
}

.mphb-gs-alc-form .gs-alc-persons-group {
	max-width: 50%;
}

.mphb-gs-alc-form .gs-alc-persons-slider-wrap {
	position: relative;
	padding-top: 28px;
}

.mphb-gs-alc-form .gs-alc-persons-slider-wrap .gs-form-range {
	margin-top: 8px;
}

.mphb-gs-alc-form .gs-alc-persons-inline-value {
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 32px;
	padding: 4px 12px;
	border-radius: 999px;
	font-size: inherit;
	font-weight: 700;
	color: #fff;
	border: 2px solid rgba(59, 130, 246, 0.5);
	border: 2px solid color-mix(in srgb, var(--gs-color-primary, #3b82f6) 50%, transparent);
}

@media (max-width: 768px) {
	.mphb-gs-alc-form .gs-alc-persons-group {
		max-width: 100%;
	}
}

.gs-form-static {
	padding: 8px 0;
	font-weight: 500;
}

.gs-radio-group {
	display: flex;
	gap: 16px;
}

.gs-radio-label {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
}

.gs-checkbox-label {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	cursor: pointer;
}

.gs-checkbox-label input {
	margin-top: 4px;
}

/* ==========================================================================
   Price Summary Styles
   ========================================================================== */

.gs-rental-price-summary {
	background: var(--gs-color-surface-alt);
	padding: 12px;
	border-radius: 4px;
	margin-top: 16px;
}

.gs-price-row {
	display: flex;
	justify-content: space-between;
	margin-bottom: 4px;
}

.gs-price-row:last-child {
	margin-bottom: 0;
}

.gs-price-total {
	font-weight: 600;
	font-size: 1.125rem;
	padding-top: 8px;
	border-top: 1px solid var(--gs-color-border);
	margin-top: 8px;
}


/* ==========================================================================
   Inline Rating Stars (global)
   ========================================================================== */

.gs-inline-rating__star,
.gs-inline-rating__star:hover,
.gs-inline-rating__star:focus,
.gs-inline-rating__star:active,
.gs-inline-rating__star.gs-inline-rating__star--filled {
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
}

/* ==========================================================================
   Dark Mode Support
   ========================================================================== */

@media (prefers-color-scheme: dark) {
	/* Scroll arrows */
	.mphb-gs-shell[data-theme="auto"] .mphb-gs-scroll-arrow {
		box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
	}

	.mphb-gs-shell[data-theme="auto"] .mphb-gs-scroll-arrow:hover,
	.mphb-gs-shell[data-theme="auto"] .mphb-gs-scroll-arrow:focus,
	.mphb-gs-shell[data-theme="auto"] .mphb-gs-scroll-arrow:active {
		background: var(--gs-color-surface-hover) !important;
		color: var(--gs-color-primary) !important;
		border-color: var(--gs-color-primary) !important;
	}

	/* Scroll carousel edge indicators */
	.mphb-gs-shell[data-theme="auto"] .mphb-gs-items-scroll-wrap::after {
		background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.2));
	}

	.mphb-gs-shell[data-theme="auto"] .mphb-gs-items-scroll-wrap::before {
		background: linear-gradient(to left, transparent, rgba(0, 0, 0, 0.2));
	}
}

/* Explicit dark theme (data-theme="dark") — mirrors @media block above */
/* Scroll arrows — dark */
.mphb-gs-shell[data-theme="dark"] .mphb-gs-scroll-arrow {
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

.mphb-gs-shell[data-theme="dark"] .mphb-gs-scroll-arrow:hover,
.mphb-gs-shell[data-theme="dark"] .mphb-gs-scroll-arrow:focus,
.mphb-gs-shell[data-theme="dark"] .mphb-gs-scroll-arrow:active {
	background: var(--gs-color-surface-hover) !important;
	color: var(--gs-color-primary) !important;
	border-color: var(--gs-color-primary) !important;
}

/* Scroll carousel edge indicators — dark */
.mphb-gs-shell[data-theme="dark"] .mphb-gs-items-scroll-wrap::after {
	background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.2));
}

.mphb-gs-shell[data-theme="dark"] .mphb-gs-items-scroll-wrap::before {
	background: linear-gradient(to left, transparent, rgba(0, 0, 0, 0.2));
}
