.osb-booking {
	--osb-text: #22252b;
	--osb-muted: #6b7280;
	--osb-border: #e2e5eb;
	--osb-surface: #ffffff;
	--osb-ivory: #fbf9f6;
	--osb-available-1: #e85066;
	--osb-available-2: #c81f3c;
	--osb-available-3: #9c1730;
	--osb-selected: #1f6feb;
	--osb-selected-2: #1552b3;
	--osb-reserved: #f59e0b;
	--osb-sold: #111827;
	--osb-blocked: #2563eb;
	--osb-gold: #b8903f;
	--osb-shadow-sm: 0 1px 2px rgba(17, 24, 39, .06);
	--osb-shadow-md: 0 10px 28px rgba(17, 24, 39, .08);
	--osb-radius: 14px;
	color: var(--osb-text);
	font-family: inherit;
}

.osb-booking * {
	box-sizing: border-box;
}

.osb-header {
	text-align: center;
	padding-bottom: 6px;
}

.osb-header h2 {
	margin: 0 0 6px;
	font-size: clamp(24px, 3vw, 36px);
	line-height: 1.15;
	letter-spacing: .02em;
	font-weight: 800;
}

.osb-header p,
.osb-help {
	color: var(--osb-muted);
	font-size: 15px;
}

.osb-header p {
	margin: 10px auto 0;
	max-width: 46em;
}

.osb-chinese-title {
	margin-top: -2px;
	font-size: clamp(26px, 3.6vw, 42px);
	line-height: 1.1;
	font-weight: 700;
	color: #3a3436;
}

.osb-header::after {
	content: "";
	display: block;
	width: 64px;
	height: 3px;
	margin: 16px auto 0;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--osb-available-2), var(--osb-gold));
}

.osb-legend {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 10px;
	margin: 20px 0 24px;
	font-size: 13px;
}

.osb-legend span {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 6px 12px;
	border: 1px solid var(--osb-border);
	border-radius: 999px;
	background: var(--osb-surface);
	box-shadow: var(--osb-shadow-sm);
	font-weight: 600;
	color: var(--osb-muted);
}

.osb-dot {
	display: inline-block;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	border: 1px solid rgba(0, 0, 0, .15);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35);
}

.osb-dot--available { background: linear-gradient(180deg, var(--osb-available-1) 0%, var(--osb-available-2) 65%, var(--osb-available-3) 100%); }
.osb-dot--selected { background: linear-gradient(180deg, var(--osb-selected), var(--osb-selected-2)); }
.osb-dot--reserved { background: var(--osb-reserved); }
.osb-dot--sold { background: var(--osb-sold); }
.osb-dot--blocked { background: var(--osb-blocked); }

.osb-layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: 18px;
	align-items: start;
}

.osb-map-wrap {
	overflow-x: auto;
	overflow-y: hidden;
	padding: 14px;
	border: 1px solid var(--osb-border);
	border-radius: var(--osb-radius);
	background: var(--osb-surface);
	box-shadow: var(--osb-shadow-md);
	width: 100%;
}

.osb-map-wrap::-webkit-scrollbar {
	height: 8px;
}

.osb-map-wrap::-webkit-scrollbar-thumb {
	background: var(--osb-border);
	border-radius: 999px;
}

.osb-map {
	width: 100%;
	min-width: 1640px;
	padding: clamp(16px, 2.4vw, 30px) clamp(12px, 2.4vw, 28px) clamp(20px, 2.4vw, 28px);
	background: radial-gradient(ellipse at 50% 0%, var(--osb-ivory) 0%, var(--osb-surface) 62%);
	border-radius: calc(var(--osb-radius) - 4px);
}

.osb-map-title {
	margin: 0 auto clamp(20px, 3.2vw, 36px);
	text-align: center;
	color: #3a3436;
	font-weight: 800;
	font-size: clamp(20px, 3.4vw, 34px);
	line-height: 1.1;
	letter-spacing: .02em;
}

.osb-map-title strong {
	display: block;
	margin-top: 6px;
	font-size: clamp(22px, 3.6vw, 38px);
	font-weight: 700;
	color: var(--osb-muted);
}

.osb-theatre-section {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.24fr) minmax(0, 1fr);
	gap: clamp(14px, 4vw, 52px);
	align-items: center;
	margin: 0 auto clamp(26px, 4.4vw, 48px);
	max-width: 1560px;
	width: 100%;
}

.osb-theatre-section--rear {
	margin-bottom: clamp(30px, 5vw, 52px);
	padding-bottom: clamp(18px, 3vw, 28px);
	border-bottom: 1px dashed var(--osb-border);
}

.osb-theatre-section--front {
	margin-bottom: clamp(24px, 3.6vw, 38px);
}

.osb-theatre-block {
	display: flex;
	flex-direction: column;
	gap: clamp(4px, .75vw, 6px);
	min-height: 20px;
	min-width: 0;
}

.osb-theatre-block--left {
	transform: rotate(-4deg) scale(.94);
	transform-origin: center right;
}

.osb-theatre-block--right {
	transform: rotate(4deg) scale(.94);
	transform-origin: center left;
}

.osb-theatre-section--front .osb-theatre-block--left {
	transform: rotate(-4deg) scale(.94);
}

.osb-theatre-section--front .osb-theatre-block--right {
	transform: rotate(4deg) scale(.94);
}

.osb-row {
	display: grid;
	grid-template-columns: clamp(15px, 1.9vw, 22px) 1fr clamp(15px, 1.9vw, 22px);
	gap: clamp(3px, .65vw, 6px);
	align-items: center;
	min-height: clamp(22px, 3vw, 32px);
}

.osb-row-label {
	font-weight: 700;
	font-size: clamp(8px, 1.1vw, 12px);
	text-align: center;
	color: var(--osb-muted);
}

.osb-theatre-block--left .osb-row-label--end,
.osb-theatre-block--right .osb-row-label--start,
.osb-theatre-block--centre .osb-row-label--start {
	visibility: hidden;
}

.osb-row--empty {
	visibility: hidden;
}

.osb-seat-run {
	display: flex;
	justify-content: center;
	gap: clamp(2px, .45vw, 5px);
	min-height: clamp(20px, 2.8vw, 30px);
	min-width: 0;
}

.osb-seat {
	width: clamp(18px, 2.3vw, 28px);
	height: clamp(18px, 2.3vw, 28px);
	flex-shrink: 0;
	border: 1px solid #9d2639;
	border-radius: 4px 4px 6px 6px;
	background: linear-gradient(180deg, var(--osb-available-1) 0%, var(--osb-available-2) 72%, var(--osb-available-3) 100%);
	box-shadow: inset 0 2px 0 rgba(255, 255, 255, .25), 0 1px 2px rgba(0, 0, 0, .25);
	color: #fff;
	font-size: clamp(7px, .95vw, 11px);
	font-weight: 800;
	line-height: 1;
	padding: 0;
	cursor: pointer;
	position: relative;
	text-shadow: 0 1px 0 rgba(0, 0, 0, .35);
	transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}

.osb-seat::before {
	content: "";
	position: absolute;
	left: 3px;
	right: 3px;
	top: 3px;
	height: 3px;
	border-radius: 3px;
	background: rgba(255, 255, 255, .22);
}

.osb-seat span {
	position: relative;
	z-index: 1;
}

.osb-seat:hover:not(:disabled) {
	transform: translateY(-1px) scale(1.12);
	filter: brightness(1.06);
	z-index: 2;
}

.osb-seat:focus-visible {
	outline: 2px solid var(--osb-gold);
	outline-offset: 2px;
	z-index: 2;
}

.osb-seat.is-selected,
.osb-seat--selected {
	background: linear-gradient(180deg, var(--osb-selected) 0%, var(--osb-selected-2) 100%);
	border-color: var(--osb-selected-2);
	color: #fff;
	transform: scale(1.14);
	box-shadow: inset 0 2px 0 rgba(255, 255, 255, .3), 0 2px 6px rgba(31, 111, 235, .45);
	z-index: 2;
}

.osb-seat.is-selected span,
.osb-seat--selected span {
	visibility: hidden;
}

.osb-seat.is-selected::after,
.osb-seat--selected::after {
	content: "\2713";
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1;
	font-size: 1.05em;
}

.osb-seat:disabled {
	cursor: not-allowed;
	box-shadow: none;
}

.osb-seat--reserved {
	background: var(--osb-reserved);
	border-color: #b7790a;
	color: #402700;
	opacity: .85;
}

.osb-seat--sold {
	background: var(--osb-sold);
	border-color: #17151c;
	color: #fff;
	opacity: .85;
}

.osb-seat--blocked {
	background: repeating-linear-gradient(135deg, var(--osb-blocked) 0, var(--osb-blocked) 5px, #60a5fa 5px, #60a5fa 9px);
	border-color: #1d4ed8;
	color: #fff;
	opacity: .9;
}

.osb-stage {
	margin: clamp(28px, 4.2vw, 44px) auto 0;
	width: min(560px, 74%);
	padding: clamp(16px, 2.6vw, 22px) 16px clamp(20px, 3vw, 28px);
	border: 1px solid #e3d3ce;
	border-top: none;
	border-radius: 0 0 50% 50% / 0 0 22px 22px;
	background: linear-gradient(180deg, #f8f1ee 0%, #f1e4e0 100%);
	box-shadow: inset 0 6px 10px -6px rgba(90, 58, 58, .35), 0 6px 16px rgba(90, 58, 58, .08);
	color: #6b4646;
	text-align: center;
	font-weight: 800;
	letter-spacing: .18em;
	font-size: 13px;
	pointer-events: none;
}

.osb-summary {
	position: static;
	padding: 18px;
	border: 1px solid var(--osb-border);
	border-radius: var(--osb-radius);
	background: var(--osb-surface);
	box-shadow: var(--osb-shadow-md);
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 10px 18px;
	align-items: start;
}

.osb-summary h3 {
	margin: 0;
	font-size: 18px;
	font-weight: 800;
	grid-column: 1 / -1;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--osb-border);
}

.osb-empty {
	color: var(--osb-muted);
	padding: 4px 0;
	font-size: 14px;
	grid-column: 1 / -1;
}

.osb-selected-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	grid-column: 1 / -1;
}

.osb-selected-list li,
.osb-total {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
}

.osb-selected-list li {
	min-width: 92px;
	border: 1px solid var(--osb-border);
	border-radius: 8px;
	padding: 7px 10px;
	background: var(--osb-ivory);
	font-size: 13px;
}

.osb-selected-list li span {
	font-weight: 700;
}

.osb-selected-list li strong {
	color: var(--osb-available-2);
}

.osb-total {
	margin-top: 4px;
	padding-top: 10px;
	border-top: 1px dashed var(--osb-border);
	font-size: 16px;
	grid-column: 1 / -1;
}

.osb-total strong {
	font-size: 22px;
	color: var(--osb-available-2);
}

.osb-checkout-button {
	width: 100%;
	min-width: 220px;
	min-height: 52px;
	margin-top: 4px;
	grid-column: 1 / -1;
	border: 0;
	border-radius: 10px;
	background: linear-gradient(180deg, var(--osb-selected) 0%, var(--osb-selected-2) 100%);
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: .01em;
	cursor: pointer;
	box-shadow: 0 6px 16px rgba(31, 111, 235, .3);
	transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
}

.osb-checkout-button:hover:not(:disabled) {
	transform: translateY(-1px);
	box-shadow: 0 10px 20px rgba(31, 111, 235, .35);
}

.osb-checkout-button:disabled {
	opacity: .5;
	cursor: not-allowed;
	box-shadow: none;
	transform: none;
}

.osb-help {
	grid-column: 1 / -1;
	margin: 0;
	font-size: 13px;
}

.osb-message {
	margin-top: 4px;
	font-weight: 700;
	font-size: 14px;
	grid-column: 1 / -1;
}

.osb-message.is-error {
	color: #b42318;
}

.osb-message.is-success {
	color: #166534;
}

.osb-checkout-countdown {
	margin: 0 0 18px;
	padding: 14px 16px;
	border-left: 4px solid var(--osb-reserved, #f59e0b);
	border-radius: 0 8px 8px 0;
	background: #fff7e6;
	font-size: 15px;
	box-shadow: var(--osb-shadow-sm);
}

@media (min-width: 900px) {
	.osb-layout {
		grid-template-columns: minmax(0, 1fr);
		align-items: start;
	}

	.osb-map-wrap {
		order: 1;
		overflow-x: hidden;
	}

	.osb-map {
		zoom: .45;
	}

	.osb-summary {
		order: 2;
		position: static;
	}
}

@media (min-width: 1100px) {
	.osb-map {
		zoom: .58;
	}
}

@media (min-width: 1300px) {
	.osb-map {
		zoom: .72;
	}
}

@media (prefers-reduced-motion: reduce) {
	.osb-seat,
	.osb-checkout-button {
		transition: none;
	}
}

@media (max-width: 760px) {
	.osb-map-wrap {
		overflow-x: auto;
		padding: 10px;
	}

	.osb-map {
		min-width: 1000px;
		padding: 22px 16px;
	}

	.osb-selected-list {
		display: block;
	}

	.osb-selected-list li {
		border: 0;
		border-bottom: 1px solid var(--osb-border);
		border-radius: 0;
		background: transparent;
		padding: 8px 0;
	}

	.osb-checkout-button {
		min-width: 0;
	}

	.osb-map-title {
		font-size: 26px;
	}

	.osb-map-title strong {
		font-size: 28px;
	}
}
