/* Shining Media customer-facing Seat Planner refinements. */
:root {
	--shining-seat-accent: #f5b807;
	--shining-seat-ink: #111318;
}

.shining-booking-status {
	padding: 18px;
	border: 1px solid rgba(248, 113, 113, 0.28);
	border-radius: 16px;
	background: rgba(239, 68, 68, 0.1);
	color: #fecaca;
	font-weight: 600;
	line-height: 1.6;
	text-align: center;
}

.shining-seat-layout-trigger {
	display: block;
	width: 100%;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 16px;
	overflow: hidden;
	background: rgba(0, 0, 0, 0.5);
	cursor: zoom-in;
}

.shining-seat-layout-trigger:focus-visible,
.shining-seat-layout-close:focus-visible,
[data-seat-booking-trigger]:focus-visible,
.stachesepl-seat-planner-portal button:focus-visible,
.stachesepl-seat-planner-portal [role="button"]:focus-visible {
	outline: 3px solid #fff !important;
	outline-offset: 3px !important;
}

.shining-seat-layout-trigger img {
	display: block;
	width: 100%;
	height: auto;
	transition: transform 0.3s ease;
}

.shining-seat-layout-trigger:hover img {
	transform: scale(1.025);
}

.shining-mobile-booking-bar {
	display: none;
}

/* Brand the actual React seat picker while preserving seat-group colors. */
.stachesepl-seat-planner-portal {
	--stachesepl-accent-color: var(--shining-seat-accent);
	--stachesepl-accent-color-20: rgba(245, 184, 7, 0.2);
	--stachesepl-btn-primary-bg: var(--shining-seat-accent);
	--stachesepl-btn-primary-hover: #ffd84a;
	--stachesepl-btn-primary-text: var(--shining-seat-ink);
	--stachesepl-btn-primary-text-hover: var(--shining-seat-ink);
	--stachesepl-btn-secondary-text: #7a5900;
	--stachesepl-btn-tertiary-ring: #b88800;
}

.stachesepl-seat-planner-header-button,
.stachesepl-date-time-picker__btn,
.stachesepl-select-seats-button,
.stachesepl-add-to-cart-button,
.stachesepl-number-stepper-field-btn {
	min-height: 46px;
}

.stachesepl-object-seat.selected {
	background-color: var(--shining-seat-accent) !important;
	color: #111 !important;
	box-shadow: 0 0 0 2px #fff, 0 0 0 5px rgba(245, 184, 7, 0.55) !important;
}

.stachesepl-object-seat.taken,
.stachesepl-object-seat.disabled {
	background-color: var(--shining-seat-taken-bg, #5f6670) !important;
	color: var(--shining-seat-taken-text, #fff) !important;
	opacity: 1;
}

.stachesepl-options-container-footer {
	box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.12);
}

.stachesepl-options-container-total-value {
	color: #9a6c00 !important;
	font-size: 1.25rem !important;
}

/* Full-screen picker: event context, ticket rail, and persistent checkout summary. */
.stachesepl-seat-planner-portal.shining-seat-summary-active .stachesepl-seat-planner-header {
	width: 100% !important;
	max-width: none !important;
	padding: 0 !important;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	background: rgba(8, 11, 20, 0.94);
	box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
	backdrop-filter: blur(18px);
}

.shining-seat-picker-topbar {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 20px;
	min-height: 58px;
	padding: 10px 370px 10px 24px;
	color: #fff;
}

.shining-seat-picker-title {
	overflow: hidden;
	font-size: 15px;
	font-weight: 800;
	letter-spacing: 0.02em;
	text-overflow: ellipsis;
	text-transform: uppercase;
	white-space: nowrap;
}

.shining-seat-picker-top-status {
	padding: 7px 14px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.04);
	color: rgba(255, 255, 255, 0.78);
	font-size: 12px;
	font-weight: 700;
	white-space: nowrap;
}

.stachesepl-seat-planner-portal.shining-seat-summary-active .stachesepl-seat-planner-header-main {
	position: absolute;
	top: 9px;
	right: 16px;
	width: auto !important;
	min-height: 40px;
	background: transparent !important;
}

.stachesepl-seat-planner-portal.shining-seat-summary-active .stachesepl-seat-planner-header-label,
.stachesepl-seat-planner-portal.shining-seat-summary-active .stachesepl-seat-planner-header-main .stachesepl-add-to-cart-button {
	display: none !important;
}

.stachesepl-seat-planner-portal.shining-seat-summary-active .stachesepl-seat-planner-header-button.secondary {
	min-height: 40px;
	padding: 0 18px;
	border: 1px solid rgba(245, 184, 7, 0.38);
	border-radius: 12px;
	background: rgba(245, 184, 7, 0.08);
	color: #ffd044;
}

.shining-seat-picker-legend {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	min-height: 48px;
	padding: 8px 20px;
	overflow-x: auto;
	border-top: 1px solid rgba(255, 255, 255, 0.07);
	box-sizing: border-box;
	scrollbar-width: thin;
}

.shining-seat-picker-legend-item {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	flex: 0 0 auto;
	padding: 6px 10px;
	border: 1px solid color-mix(in srgb, var(--shining-seat-group-color, #f5b807) 45%, transparent);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.035);
	color: rgba(255, 255, 255, 0.72);
	font-size: 11px;
	white-space: nowrap;
	text-align: center;
}

.stachesepl-seat-planner-portal.shining-seat-summary-active .stachesepl-seat-planner-portal-container-transform-controls {
	position: fixed !important;
	z-index: 140 !important;
	top: 9px !important;
	right: 104px !important;
	bottom: auto !important;
	left: auto !important;
	width: auto !important;
	height: auto !important;
	padding: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
}

.stachesepl-seat-planner-portal.shining-seat-summary-active .stachesepl-seat-planner-portal-container-transform-controls-buttons {
	display: flex !important;
	gap: 6px;
	width: auto !important;
	height: auto !important;
	padding: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
}

.stachesepl-seat-planner-portal.shining-seat-summary-active .stachesepl-seat-planner-portal-container-transform-controls-buttons button {
	flex: 0 0 40px !important;
	width: 40px !important;
	min-width: 40px !important;
	height: 40px !important;
	min-height: 40px !important;
	padding: 0 !important;
	border: 1px solid rgba(255, 255, 255, 0.16) !important;
	border-radius: 12px !important;
	background: rgba(255, 255, 255, 0.06) !important;
	color: rgba(255, 255, 255, 0.82) !important;
	box-shadow: none !important;
}

.stachesepl-seat-planner-portal.shining-seat-summary-active .stachesepl-seat-planner-portal-container-transform-controls-buttons button:hover {
	border-color: rgba(245, 184, 7, 0.55) !important;
	background: rgba(245, 184, 7, 0.12) !important;
	color: #ffd044 !important;
}

.shining-seat-picker-legend-item i {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--shining-seat-group-color, #f5b807);
	box-shadow: 0 0 10px var(--shining-seat-group-color, #f5b807);
}

.shining-seat-picker-legend-item b {
	color: #fff;
	font-weight: 800;
}

.shining-seat-picker-legend-item span {
	color: var(--shining-seat-group-color, #f5b807);
	font-weight: 800;
}

.shining-seat-picker-state {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex: 0 0 auto;
	color: rgba(255, 255, 255, 0.58);
	font-size: 11px;
	white-space: nowrap;
}

.shining-seat-picker-state::before {
	content: "";
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #788394;
}

.shining-seat-picker-state--held::before {
	background: #f59e0b;
}

.shining-seat-picker-summary {
	position: fixed;
	z-index: 130;
	bottom: max(18px, env(safe-area-inset-bottom, 0px));
	left: 20px;
	display: grid;
	grid-template-columns: 48px minmax(0, 1fr) auto;
	align-items: center;
	gap: 12px;
	width: min(560px, calc(100vw - 40px));
	min-height: 82px;
	padding: 10px 12px;
	border: 2px solid var(--shining-seat-accent);
	border-radius: 18px;
	box-sizing: border-box;
	background: rgba(255, 255, 255, 0.97);
	box-shadow: 0 16px 45px rgba(0, 0, 0, 0.36);
	color: #111318;
}

.shining-seat-picker-summary-icon {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 14px;
	background: rgba(245, 184, 7, 0.16);
	color: #9a6c00;
}

.shining-seat-picker-summary-icon svg {
	width: 25px;
	height: 25px;
}

.shining-seat-picker-summary-copy {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.shining-seat-picker-summary-copy > span {
	overflow: hidden;
	color: #586174;
	font-size: 12px;
	font-weight: 650;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.shining-seat-picker-summary-copy strong {
	color: #c68100;
	font-size: 23px;
	line-height: 1.1;
	white-space: nowrap;
}

.shining-seat-picker-summary-copy small {
	color: #111318;
	font-size: 14px;
	font-weight: 800;
}

.shining-seat-picker-checkout {
	min-width: 160px;
	min-height: 50px;
	padding: 0 24px;
	border: 0;
	border-radius: 999px;
	background: var(--shining-seat-accent);
	box-shadow: 0 8px 20px rgba(245, 184, 7, 0.3);
	color: #111318;
	cursor: pointer;
	font-size: 13px;
	font-weight: 900;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.shining-seat-picker-checkout:hover:not(:disabled) {
	background: #ffd84a;
	transform: translateY(-1px);
}

.shining-seat-picker-checkout:disabled {
	box-shadow: none;
	cursor: not-allowed;
	opacity: 0.42;
}

.shining-seat-picker-checkout:focus-visible {
	outline: 3px solid #111318 !important;
	outline-offset: 3px !important;
}

@media (max-width: 782px) {
	.shining-mobile-booking-bar {
		position: fixed;
		z-index: 9990;
		right: 0;
		bottom: 0;
		left: 0;
		display: flex;
		align-items: center;
		gap: 12px;
		padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
		border-top: 1px solid rgba(255, 255, 255, 0.12);
		background: rgba(12, 12, 14, 0.96);
		box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.45);
		backdrop-filter: blur(16px);
	}

	.shining-mobile-booking-bar span {
		flex: 1;
		color: rgba(255, 255, 255, 0.72);
		font-size: 12px;
		line-height: 1.35;
	}

	.shining-mobile-booking-bar button {
		min-height: 48px;
		padding: 0 20px;
	}

	body:has(.shining-mobile-booking-bar) {
		padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
	}

	/* Floating contact and cart controls otherwise cover seats and the checkout CTA. */
	body.single-product #button-contact-vr,
	body:has(.stachesepl-seat-planner-portal) #button-contact-vr,
	body:has(.stachesepl-seat-planner-portal) .xoo-wsc-basket {
		display: none !important;
	}

	body.single-product .xoo-wsc-basket {
		right: 12px !important;
		bottom: calc(18px + env(safe-area-inset-bottom, 0px)) !important;
		transform: scale(0.86);
		transform-origin: right bottom;
	}

	body.single-product:has(.shining-mobile-booking-bar) .xoo-wsc-basket {
		bottom: calc(88px + env(safe-area-inset-bottom, 0px)) !important;
	}

	.stachesepl-seat-planner-header-buttons button,
	.stachesepl-seat-planner-portal-container-transform-controls-buttons button {
		min-height: 48px;
	}

	.shining-seat-picker-topbar {
		grid-template-columns: minmax(0, 1fr);
		gap: 3px;
		min-height: 64px;
		padding: 10px 225px 8px 12px;
	}

	.shining-seat-picker-title {
		font-size: 12px;
	}

	.shining-seat-picker-top-status {
		justify-self: start;
		padding: 0;
		border: 0;
		background: transparent;
		color: #ffd044;
		font-size: 11px;
	}

	.stachesepl-seat-planner-portal.shining-seat-summary-active .stachesepl-seat-planner-header-main {
		top: 8px;
		right: 8px;
	}

	.stachesepl-seat-planner-portal.shining-seat-summary-active .stachesepl-seat-planner-header-button.secondary {
		min-height: 42px;
		padding: 0 13px;
		font-size: 12px;
	}

	.shining-seat-picker-legend {
		justify-content: flex-start;
		padding: 7px 10px;
	}

	.stachesepl-seat-planner-portal.shining-seat-summary-active .stachesepl-seat-planner-portal-container-transform-controls {
		top: 10px !important;
		right: 76px !important;
	}

	.stachesepl-seat-planner-portal.shining-seat-summary-active .stachesepl-seat-planner-portal-container-transform-controls-buttons {
		gap: 4px;
	}

	.stachesepl-seat-planner-portal.shining-seat-summary-active .stachesepl-seat-planner-portal-container-transform-controls-buttons button {
		flex-basis: 36px !important;
		width: 36px !important;
		min-width: 36px !important;
		height: 36px !important;
		min-height: 36px !important;
		border-radius: 10px !important;
	}

	.shining-seat-picker-summary {
		right: 8px;
		bottom: calc(8px + env(safe-area-inset-bottom, 0px));
		left: 8px;
		grid-template-columns: minmax(0, 1fr) auto;
		gap: 8px;
		width: auto;
		min-height: 76px;
		padding: 9px 9px 9px 12px;
		border-radius: 15px;
	}

	.shining-seat-picker-summary-icon {
		display: none;
	}

	.shining-seat-picker-summary-copy strong {
		font-size: 18px;
	}

	.shining-seat-picker-summary-copy small {
		display: block;
		font-size: 11px;
	}

	.shining-seat-picker-checkout {
		min-width: 126px;
		min-height: 50px;
		padding: 0 17px;
		font-size: 11px;
	}

	.stachesepl-seat-info-bottom-sheet-button,
	.stachesepl-options-container-footer button {
		min-height: 50px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.shining-seat-layout-trigger img,
	.stachesepl-seat-planner-portal * {
		scroll-behavior: auto !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}
