/**
 * GoTango Events — Interactive Seating Picker Styles
 */

.gt-seating-section {
	width: 100%;
	max-width: 100%;
	overflow-x: hidden;
	box-sizing: border-box;
}

.gt-seating-container,
.gt-seating-container *,
.gt-seating-container *::before,
.gt-seating-container *::after {
	box-sizing: border-box;
}

.gt-seating-container {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 40px;
	align-items: flex-start;
	width: 100%;
	max-width: 100%;
	margin: 32px 0 64px;
}

.gt-seating-main {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 24px;
	width: 100%;
	max-width: 100%;
}

.gt-seating-header {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px 24px;
	width: 100%;
}

.gt-seating-live-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #3D7A4F;
	display: inline-block;
	animation: gt-pulse 2s infinite ease-in-out;
}

@keyframes gt-pulse {
	0%, 100% { opacity: 1; transform: scale(1); }
	50% { opacity: 0.4; transform: scale(1.2); }
}

/* Legend */
.gt-seating-legend {
	list-style: none;
	margin: 0;
	padding: 14px 0;
	display: flex;
	flex-wrap: wrap;
	gap: 10px 24px;
	border-top: 1px solid var(--gt-ink, #161514);
	border-bottom: 1px solid var(--gt-border, #D3CDC4);
	font-size: 14px;
	width: 100%;
}

.gt-seating-legend li {
	display: flex;
	align-items: center;
	gap: 8px;
}

.gt-legend-box {
	width: 16px;
	height: 16px;
	border-radius: 4px 4px 2px 2px;
	box-sizing: border-box;
	flex: none;
}

/* Toolbar & Zoom */
.gt-hall-toolbar {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 8px;
	width: 100%;
}

.gt-zoom-btn {
	width: 32px;
	height: 32px;
	border: 1px solid var(--gt-border, #D3CDC4);
	background: #FFFFFF;
	color: var(--gt-ink, #161514);
	border-radius: 2px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.gt-zoom-btn:hover {
	background: var(--gt-stone, #E8E4DD);
	border-color: var(--gt-ink, #161514);
}

/* Hall Plan Box */
.gt-hall-plan-box {
	background: #FFFFFF;
	border: 1px solid var(--gt-border, #D3CDC4);
	padding: 24px 16px;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.gt-hall-canvas-wrap {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 28px;
	min-width: max-content;
	margin: 0 auto;
	padding: 12px 28px;
	box-sizing: border-box;
}

.gt-stage-banner {
	width: 60%;
	min-width: 260px;
	max-width: 480px;
	padding: 10px 0;
	background: var(--gt-ink, #161514);
	color: #F5F3EF;
	text-align: center;
	font-size: 12px;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	font-weight: 600;
	clip-path: polygon(0 0, 100% 0, 94% 100%, 6% 100%);
	margin: 0 auto;
}

.gt-hall-layout-columns {
	display: flex;
	justify-content: center;
	align-items: flex-start;
	gap: 28px;
	width: max-content;
	margin: 0 auto;
	box-sizing: border-box;
}

.gt-balcony-col {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	border: 1px dashed #C3C8D0;
	border-radius: 10px;
	padding: 14px;
	background: #FFFFFF;
	box-sizing: border-box;
	flex: none;
}

.gt-main-sections-col {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 28px;
	flex: none;
}

.gt-v2-section {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
}

.gt-v2-sec-title {
	margin: 0;
	font-size: 12px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--gt-muted, #5C5853);
	font-weight: 600;
}

/* Grids & Rows */
.gt-seats-grid {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.gt-row-wrap {
	display: flex;
	align-items: center;
	gap: 5px;
}

.gt-row-label {
	min-width: 24px;
	text-align: right;
	font-size: 11px;
	color: var(--gt-muted, #5C5853);
	font-variant-numeric: tabular-nums;
	user-select: none;
}

.gt-row-label-right {
	text-align: left;
}

.gt-seats-block {
	display: flex;
	align-items: center;
	gap: 5px;
}

.gt-aisle-spacer {
	display: inline-block;
	height: 20px;
}

/* Individual Seat Buttons */
.gt-seat-btn {
	box-sizing: border-box;
	padding: 0;
	border-radius: 4px 4px 2px 2px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.12s ease, outline 0.12s ease;
	font-family: inherit;
	font-weight: 600;
	line-height: 1;
	border: 1.5px solid transparent;
}

.gt-seat-btn:not(:disabled):hover {
	outline: 2px solid var(--gt-ink, #161514);
	outline-offset: 1px;
	transform: scale(1.15);
	z-index: 2;
}

/* Selected */
.gt-seat-btn.is-selected {
	background: var(--gt-crimson, #7A2232) !important;
	border-color: var(--gt-crimson, #7A2232) !important;
	color: #FFFFFF !important;
}

/* Booked / Sold */
.gt-seat-btn:disabled,
.gt-seat-btn.is-booked {
	background: #D3D7DD !important;
	border-color: #B5BBC4 !important;
	color: #7A828E !important;
	cursor: not-allowed !important;
	opacity: 0.85;
}

/* Blocked / Partner */
.gt-seat-btn.is-blocked {
	background: #EDE9E3 !important;
	border: 1.5px dashed #A8A29A !important;
	cursor: not-allowed !important;
}

/* Technical Seats: completely invisible & non-interactive */
.gt-seat-btn.is-technical {
	visibility: hidden !important;
	pointer-events: none !important;
	opacity: 0 !important;
}

/* Order Summary Aside */
.gt-seating-aside {
	position: sticky;
	top: 96px;
	display: flex;
	flex-direction: column;
	gap: 20px;
	border-top: 1px solid var(--gt-ink, #161514);
	padding-top: 20px;
	background: var(--gt-canvas, #F5F3EF);
	width: 100%;
	max-width: 100%;
}

.gt-aside-event-info {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.gt-aside-event-title {
	margin: 0;
	font-family: var(--gt-font-serif, 'Instrument Serif', serif);
	font-weight: 400;
	font-size: 28px;
	line-height: 1.1;
}

.gt-aside-seats-list {
	display: flex;
	flex-direction: column;
	width: 100%;
}

.gt-aside-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 0;
	border-top: 1px solid var(--gt-border, #D3CDC4);
	width: 100%;
}

.gt-aside-item-info {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.gt-aside-item-label {
	font-size: 15px;
	font-weight: 500;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.gt-aside-item-type select {
	font-size: 13px;
	padding: 3px 6px;
	border: 1px solid var(--gt-border, #D3CDC4);
	background: #FFFFFF;
	border-radius: 0;
	max-width: 100%;
}

.gt-aside-item-right {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: none;
}

.gt-aside-item-price {
	font-size: 15px;
	font-variant-numeric: tabular-nums;
	font-weight: 600;
	white-space: nowrap;
}

.gt-aside-item-remove {
	width: 32px;
	height: 32px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: 0;
	cursor: pointer;
	color: var(--gt-ink, #161514);
	padding: 0;
}

.gt-aside-item-remove:hover {
	background: var(--gt-stone, #E8E4DD);
}

.gt-aside-total-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	padding: 16px 0 0;
	border-top: 1px solid var(--gt-ink, #161514);
	width: 100%;
}

.gt-aside-total-label {
	font-size: 15px;
	font-weight: 600;
}

.gt-aside-total-val {
	font-family: var(--gt-font-serif, 'Instrument Serif', serif);
	font-size: 32px;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

.gt-btn-checkout {
	box-sizing: border-box;
	width: 100% !important;
	max-width: 100% !important;
	min-height: 54px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 16px;
	font-size: 15px;
	font-weight: 500;
	border-radius: 0;
	cursor: pointer;
	white-space: nowrap;
}

.gt-aside-timer {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--gt-muted, #5C5853);
	margin: -6px 0 0;
}

.gt-aside-timer.is-warning {
	color: var(--gt-crimson, #7A2232);
	font-weight: 600;
}

/* Dance Roles & Non-Seated Mode */
.gt-non-seated-wrap {
	display: flex;
	flex-direction: column;
	gap: 20px;
	background: #FFFFFF;
	border: 1px solid var(--gt-border, #D3CDC4);
	padding: 28px;
	width: 100%;
}

/* Responsive Grid Breakpoint */
@media (max-width: 991px) {
	.gt-seating-container {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
	}

	.gt-seating-aside {
		position: static;
		width: 100%;
	}
}

/* ---------- 1.1: server-driven plan ---------- */
.gt-seating-title { margin: 0; font-family: var(--gt-font-serif, 'Instrument Serif', serif); font-weight: 400; font-size: clamp(32px, 1.5rem + 1.5vw, 48px); line-height: 1; }
.gt-seating-live { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--gt-muted, #5C5853); }
.gt-seating-loading, .gt-seating-closed { margin: 32px 0; padding: 20px 24px; border: 1px solid var(--gt-border, #D3CDC4); background: #FFF; font-size: 16px; }
.gt-seating-message { margin: 0; padding: 12px 16px; border-left: 3px solid var(--gt-crimson, #7A2232); background: #FBF1F2; color: var(--gt-crimson, #7A2232); font-size: 15px; }
.gt-seating-legend li.is-muted { color: var(--gt-muted, #5C5853); }
.gt-legend-box { border: 1.5px solid transparent; display: inline-block; }
.gt-legend-box.is-mine { background: var(--gt-crimson, #7A2232); border-color: var(--gt-crimson, #7A2232); }
.gt-legend-box.is-taken { background: #D3D7DD; border-color: #B5BBC4; }
.gt-zoom-btn.gt-zoom-fit { width: auto; padding: 0 10px; font-size: 13px; font-weight: 500; }
.gt-hall-toolbar > span { font-size: 12px; color: var(--gt-muted, #5C5853); }
.gt-hall-notice { margin: 0; font-size: 13px; color: var(--gt-muted, #5C5853); text-align: center; }
.gt-seat-gap { display: inline-block; flex: none; }

/* Side balconies: rows are columns, seats stack vertically. */
.gt-seats-grid.is-vertical { flex-direction: row; align-items: flex-start; }
/* Side balconies: rows arrive from the server already in visual (left→right) order. */
.gt-seats-grid.is-vertical .gt-row-wrap { flex-direction: column; }
.gt-seats-grid.is-vertical .gt-seats-block { flex-direction: column; }
.gt-seats-grid.is-vertical .gt-row-label { min-width: 0; text-align: center; min-height: 18px; }

/* General admission areas */
.gt-band-wrap { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; padding: 12px; background: #EDE9E3; border: 1px solid var(--gt-border, #D3CDC4); }
.gt-band-item { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; background: #FFF; border: 1px solid var(--gt-border, #D3CDC4); min-width: 200px; flex: 1; }
.gt-band-name { font-size: 16px; font-weight: 600; }
.gt-band-meta { font-size: 13px; color: var(--gt-muted, #5C5853); }
.gt-qty { display: flex; align-items: center; gap: 12px; }
.gt-qty-btn { width: 40px; height: 40px; border: 1px solid var(--gt-ink, #161514); background: transparent; font-size: 20px; line-height: 1; cursor: pointer; color: var(--gt-ink, #161514); }
.gt-qty-btn:disabled { opacity: .35; cursor: not-allowed; }
.gt-qty-num { min-width: 24px; text-align: center; font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* Aside additions */
.gt-aside-event-meta { margin: 0; font-size: 14px; color: var(--gt-muted, #5C5853); line-height: 1.5; }
.gt-aside-count { margin: 0 0 8px; font-size: 14px; font-weight: 600; }
.gt-aside-empty { margin: 0; padding: 16px 0; border-top: 1px solid var(--gt-border, #D3CDC4); font-size: 15px; color: var(--gt-muted, #5C5853); }
.gt-aside-item-zone { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--gt-muted, #5C5853); }
.gt-aside-item-zone .gt-legend-box { width: 10px; height: 10px; }
.gt-aside-item-typetext { font-size: 13px; color: var(--gt-muted, #5C5853); }
.gt-aside-item-label { white-space: normal; }
.gt-aside-note { margin: 0; font-size: 13px; line-height: 1.5; color: var(--gt-muted, #5C5853); }
.gt-btn-checkout:disabled { background: var(--gt-border, #D3CDC4) !important; border-color: var(--gt-border, #D3CDC4) !important; color: #5C5853 !important; cursor: not-allowed; }
.gt-btn-checkout { white-space: normal; text-align: center; }
@media (max-width: 640px) {
	.gt-hall-plan-box { padding: 16px 8px; }
	.gt-hall-plan-box::after { content: attr(data-hint); display: block; margin-top: 8px; font-size: 12px; color: var(--gt-muted, #5C5853); text-align: center; position: sticky; left: 0; }
	.gt-seating-aside { position: static; }
}
.gt-mobile-basket { display: none; }
@media (max-width: 991px) {
	.gt-mobile-basket { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 120; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--gt-canvas, #F5F3EF); border-top: 1px solid var(--gt-ink, #161514); box-shadow: 0 -8px 24px rgba(22, 21, 20, .1); font-size: 15px; }
	.gt-mobile-basket .gt-btn-checkout { width: auto !important; min-height: 46px; padding: 0 22px; }
	.gt-seating-section { padding-bottom: 72px; }
}

/* ---------- 1.4: instant seat feedback, overview on phones, basket shortcut ---------- */
.gt-hall-plan-box { position: relative; }
.gt-seat-btn.is-pending { animation: gt-seat-pending 1s ease-in-out infinite; }
@keyframes gt-seat-pending { 50% { opacity: .6; } }
@media (prefers-reduced-motion: reduce) { .gt-seat-btn.is-pending { animation: none; opacity: .75; } }
.gt-aside-saving { font-weight: 400; color: var(--gt-muted, #5C5853); }

/* Whole hall scaled down to the screen width; a tap zooms in where the visitor tapped. */
.gt-hall-plan-box.is-overview { overflow: hidden; }
.gt-hall-plan-box.is-overview::after { display: none; }
.gt-hall-plan-box.is-overview .gt-seat-btn:not(:disabled):hover { transform: none; outline: 0; }
.gt-plan-overlay { position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; justify-content: center; width: 100%; padding: 0; border: 0; background: rgba(245, 243, 239, .38); cursor: zoom-in; font: inherit; color: var(--gt-ink, #161514); }
.gt-plan-overlay span { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; background: var(--gt-ink, #161514); color: #F5F3EF; font-size: 14px; font-weight: 600; box-shadow: 0 6px 20px rgba(22, 21, 20, .25); }
.gt-plan-overlay span::before { content: ""; width: 14px; height: 14px; border: 1.5px solid currentColor; border-radius: 50%; box-shadow: 0 0 0 4px rgba(245, 243, 239, .15); }

.gt-seating-aside { scroll-margin-top: 88px; }
.gt-mobile-summary { display: inline-flex; align-items: center; gap: 6px; padding: 8px 0; border: 0; background: none; color: var(--gt-ink, #161514); font: inherit; font-size: 15px; text-align: left; cursor: pointer; }
.gt-mobile-summary svg { flex: none; margin-left: 2px; }

/* Ticket being removed: grey pulsing seat + pulsing X in the summary */
.gt-seat-btn.is-releasing { background: #D3D7DD !important; border-color: #B5BBC4 !important; color: #7A828E !important; }
.gt-aside-item.is-releasing .gt-aside-item-info { opacity: .5; transition: opacity .2s ease; }
.gt-aside-item-remove.is-pending { animation: gt-seat-pending 1s ease-in-out infinite; color: var(--gt-crimson, #7A2232); cursor: progress; }
@media (prefers-reduced-motion: reduce) { .gt-aside-item-remove.is-pending { animation: none; } }

/* Boxes in a row (e.g. Filharmonia Łódzka): box names above the blocks of seats. */
.gt-box-heads { margin-bottom: 2px; }
.gt-box-head { display: inline-flex; justify-content: center; flex: none; text-align: center; white-space: nowrap; overflow: visible; font-family: var(--gt-font-serif, "Instrument Serif", Georgia, serif); font-size: 12px; font-weight: 600; letter-spacing: 0.14em; line-height: 1.2; text-transform: uppercase; color: var(--gt-muted, #5C5853); }
