/* Theatreworks Live canonical venue layout for the TWL ticket storefront. */
.single-product form.cart .variations {
	display: none !important;
}

.single-product .twl-product-shell.twl-product-shell--override form.variations_form.cart:has([data-twl-ticket-venue-selector]) table.variations,
.single-product .twl-product-shell.twl-product-shell--override form.variations_form.cart:has([data-twl-ticket-venue-selector]) .variations,
.single-product .twl-product-shell.twl-product-shell--override .variations_form.cart:has([data-twl-ticket-venue-selector]) table.variations,
.single-product .twl-product-shell.twl-product-shell--override form.variations_form.cart.twl-ticket-form table.variations,
.single-product .twl-product-shell.twl-product-shell--override form.variations_form.cart.twl-ticket-form .variations {
	display: none !important;
}

.single-product form.cart .reset_variations,
.single-product form.cart .woocommerce-variation-description,
.single-product form.cart .woocommerce-variation-availability,
.single-product form.cart div[id^="fooevents_variation_"] {
	display: none !important;
}

.woocommerce-input-wrapper select[id^="fooevents_seat_row_name"],
.woocommerce-input-wrapper select[id^="fooevents_seat_number"],
.select2-container--default .select2-selection--single,
.select2-results__option {
	background-color: #333 !important;
	color: #fff !important;
}

.twl-ticket-venue-selector {
	clear: both;
	border-bottom: 1px solid rgba(255, 255, 255, 0.18);
	display: grid;
	gap: 0;
	justify-items: start;
	margin: 0 0 18px;
	max-width: 100%;
	padding-bottom: 18px;
	width: 100%;
}

.twl-ticket-venue-selector h2 {
	font-size: 24px;
	margin: 0 0 14px;
}

.twl-ticket-open-seating,
.twl-ticket-confirm-seats {
	border-radius: 999px;
	font-weight: 800;
	text-transform: uppercase;
}

.twl-ticket-open-seating {
	display: inline-flex;
	font-size: 12px;
	justify-content: center;
	letter-spacing: 0.08em;
	padding: 0.72rem 1.2rem;
	white-space: nowrap;
}

.twl-ticket-selected-seat {
	clear: both;
	display: block;
	font-size: clamp(0.98rem, 1.5vw, 1.12rem);
	line-height: 1.3;
	margin: 10px 0 0;
	min-height: 1.4em;
	overflow-wrap: anywhere;
	width: 100%;
}

.single-product form.cart input.qty.twl-ticket-qty-readonly {
	cursor: default;
	user-select: none;
}

.single-product .twl-product-shell.twl-product-shell--override form.variations_form.cart.twl-ticket-form {
	display: grid !important;
	gap: 0;
	justify-items: start;
}

.single-product .twl-product-shell.twl-product-shell--override form.variations_form.cart.twl-ticket-form .single_variation_wrap,
.single-product .twl-product-shell.twl-product-shell--override form.variations_form.cart.twl-ticket-form .woocommerce-variation-add-to-cart {
	width: 100%;
}

.single-product .twl-product-shell.twl-product-shell--override form.variations_form.cart.twl-ticket-form .woocommerce-variation-add-to-cart {
	align-items: center;
	display: grid !important;
	gap: 10px;
	grid-template-columns: minmax(74px, 96px) minmax(0, 240px);
	justify-content: start;
}

.single-product .twl-product-shell.twl-product-shell--override form.variations_form.cart.twl-ticket-form .woocommerce-variation-add-to-cart::before {
	content: "";
	display: block;
	grid-column: 1 / -1;
	height: 4px;
}

.twl-ticket-cart-quantity {
	align-items: center;
	background: #080808;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 999px;
	color: #fff;
	display: inline-flex;
	font-weight: 700;
	justify-content: center;
	min-height: 42px;
	min-width: 74px;
	padding: 0 1rem;
}

.single-product form.cart .single_add_to_cart_button:disabled,
.single-product form.cart .single_add_to_cart_button.disabled {
	cursor: not-allowed;
	opacity: 0.45;
	pointer-events: none;
}

.twl-ticket-seat-modal[hidden] {
	display: none;
}

.twl-ticket-seat-modal {
	bottom: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	left: 0;
	position: fixed;
	right: 0;
	top: 0;
	z-index: 100000;
}

.twl-ticket-seat-modal-backdrop {
	background: rgba(0, 0, 0, 0.76);
	bottom: 0;
	left: 0;
	position: absolute;
	right: 0;
	top: 0;
}

.twl-ticket-seat-modal-dialog {
	background: #1f2327;
	border: 1px solid rgba(255, 253, 248, 0.16);
	border-radius: 28px;
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.48);
	color: #fff;
	left: 50%;
	max-height: min(82vh, 880px);
	max-width: min(940px, calc(100vw - 32px));
	overflow-y: auto;
	overflow-x: hidden;
	padding: 22px 18px 24px;
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%);
	width: calc(100vw - 32px);
}

.twl-ticket-seat-modal-close {
	background: rgba(201, 172, 140, 0.08);
	border: 1px solid rgba(201, 172, 140, 0.2);
	border-radius: 999px;
	color: #c9ac8c;
	cursor: pointer;
	font-size: 28px;
	height: 44px;
	line-height: 1;
	position: absolute;
	right: 18px;
	top: 18px;
	width: 44px;
}

.twl-ticket-venue-front {
	background: #5f5f5f;
	color: #fff;
	font-weight: 700;
	margin: 0 0 22px;
	padding: 9px;
	text-align: center;
}

.twl-ticket-venue-wrap {
	align-items: stretch;
	display: grid;
	gap: 2px;
	grid-template-columns: 14px max-content 14px;
	justify-content: center;
	max-width: 100%;
}

.twl-ticket-venue-wall {
	align-items: center;
	background: #2f3338;
	color: #7e8791;
	display: flex;
	font-size: 8px;
	font-weight: 700;
	justify-content: center;
	min-height: 100%;
	padding: 4px 0;
}

.twl-ticket-venue-wall span {
	display: none;
}

.twl-ticket-venue-rows {
	display: grid;
	gap: 5px;
}

.twl-ticket-venue-row {
	align-items: center;
	display: grid;
	gap: 3px;
	grid-template-columns: 18px max-content 18px;
}

.twl-ticket-row-label {
	align-items: center;
	display: inline-flex;
	justify-content: center;
	text-align: right;
	width: 18px;
}

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

.twl-ticket-row-layout {
	display: grid;
	gap: 6px;
	grid-template-columns: max-content 14px max-content;
}

.twl-ticket-seat-group {
	display: flex;
	gap: 3px;
}

.twl-ticket-seat {
	align-items: center;
	appearance: none;
	background: #fff;
	border: 2px solid #c3c4c7;
	border-radius: 7px;
	box-sizing: border-box;
	color: #1d2327;
	cursor: pointer;
	display: inline-flex;
	flex: 0 0 26px;
	font-size: 11px;
	font-weight: 700;
	height: 26px;
	justify-content: center;
	max-width: 26px;
	min-width: 26px;
	overflow: hidden;
	padding: 0;
	width: 26px;
}

.twl-ticket-seat span {
	display: block;
	line-height: 1;
}

.twl-ticket-seat.is-available {
	background: #fff;
	border-color: #c3c4c7;
	color: #1d2327;
}

.twl-ticket-seat.is-selected {
	background: #0f6fb5;
	border-color: #0f6fb5;
	color: #fff;
}

@media (hover: hover) and (pointer: fine) {
	.twl-ticket-seat:hover {
		background: #0f6fb5;
		border-color: #0f6fb5;
		color: #fff;
	}
}

.twl-ticket-seat.is-accessible span {
	font-size: 0;
}

.twl-ticket-seat.is-accessible::after {
	content: "\267F";
	font-size: 14px;
	line-height: 1;
}

.twl-ticket-seat.is-booked {
	background: #4B5563;
	border-color: #4B5563;
	color: #fff;
	cursor: not-allowed;
	opacity: 1;
}

.twl-ticket-seat.is-pending {
	background: linear-gradient(180deg, #c9c29f 0%, #9a9787 100%);
	border-color: #d6bf72;
	box-shadow: inset 0 0 0 1px rgba(255, 235, 158, 0.35);
	color: #fff9df;
	cursor: not-allowed;
}

.twl-ticket-seat.is-pending-own {
	background: linear-gradient(180deg, #c6c1ab 0%, #8d8878 100%);
	border-color: #eedf9c;
	box-shadow: inset 0 0 0 1px rgba(255, 245, 200, 0.58);
	color: #fffdf1;
	cursor: not-allowed;
}

.twl-ticket-venue-aisle {
	align-items: center;
	border-left: 2px dashed #555;
	border-right: 2px dashed #555;
	display: inline-flex;
	justify-content: center;
	min-height: 26px;
	width: 14px;
}

.twl-ticket-venue-aisle span {
	color: #777;
	font-size: 8px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	transform: rotate(180deg);
	writing-mode: vertical-rl;
}

.twl-ticket-venue-row:not(:first-child) .twl-ticket-venue-aisle span {
	visibility: hidden;
}

.twl-ticket-venue-note {
	margin: 12px 0 0;
	padding: 0 16px;
}

.twl-ticket-seat-modal-actions {
	align-items: center;
	background: linear-gradient(180deg, rgba(31, 35, 39, 0.78), rgba(31, 35, 39, 0.98));
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	bottom: -24px;
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	justify-content: flex-start;
	margin: 18px 0px -24px;
	padding: 14px 18px 16px;
	position: sticky;
}

.twl-ticket-seat-legend {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 10px 16px;
	justify-content: flex-end;
	margin-left: auto;
	min-width: 0;
	order: 2;
}

.twl-ticket-seat-legend-item {
	align-items: center;
	display: inline-flex;
	font-size: 12px;
	font-weight: 600;
	gap: 8px;
	letter-spacing: 0.02em;
	white-space: nowrap;
}

.twl-ticket-seat-legend-swatch {
	background: #fff;
	border: 2px solid #c3c4c7;
	border-radius: 6px;
	box-sizing: border-box;
	display: inline-block;
	height: 18px;
	position: relative;
	width: 18px;
}

.twl-ticket-seat-legend-swatch.is-available {
	background: #fff;
	border-color: #c3c4c7;
}

.twl-ticket-seat-legend-swatch.is-booked {
	background: #4B5563;
	border-color: #4B5563;
}

.twl-ticket-seat-legend-swatch.is-pending {
	background: linear-gradient(180deg, #c9c29f 0%, #9a9787 100%);
	border-color: #d6bf72;
	box-shadow: inset 0 0 0 1px rgba(255, 235, 158, 0.35);
}

.twl-ticket-seat-legend-swatch.is-selected {
	background: #0f6fb5;
	border-color: #0f6fb5;
}

.twl-ticket-show-details {
	border-bottom: 1px solid rgba(255, 255, 255, 0.14);
	border-top: 1px solid rgba(255, 255, 255, 0.14);
	display: grid;
	gap: 4px;
	margin: 16px 0;
	padding: 12px 0;
}

.twl-ticket-show-details strong {
	text-transform: uppercase;
}

@media (max-width: 782px) {
	.twl-ticket-seat-modal-dialog {
		left: auto;
		top: auto;
		transform: none;
		max-height: min(86dvh, 760px);
		padding: 20px 0;
		width: 100% !important;
		max-width: 100% !important;
		display: flex;
		flex-direction: column;
		overflow: hidden;
		margin: 0 auto;
	}

	.twl-ticket-venue-selector h2 {
		padding: 0 16px;
	}

	.twl-ticket-venue-wrap {
		width: 100% !important;
		display: grid !important;
		grid-template-columns: 8px minmax(0, 1fr) 8px !important;
		justify-content: flex-start;
		overflow: auto;
		-webkit-overflow-scrolling: touch;
		padding-bottom: 8px;
		max-height: min(42dvh, 340px);
	}

	.twl-ticket-venue-front {
		font-size: 15px;
		padding: 10px 8px;
	}

	.twl-ticket-venue-rows {
		width: 100% !important;
		min-width: max-content;
		justify-self: stretch !important;
	}

	.twl-ticket-venue-row {
		width: 100% !important;
		display: grid !important;
		gap: 2px;
		grid-template-columns: 14px minmax(0, 1fr) 14px !important;
	}

	.twl-ticket-row-label {
		font-size: 11px;
		width: 14px;
		min-width: 14px;
		justify-self: center;
	}

	.twl-ticket-row-layout {
		width: 100% !important;
		display: grid !important;
		gap: 3px;
		grid-template-columns: minmax(0, 1fr) 8px minmax(0, 1fr) !important;
		min-width: 0 !important;
		overflow: hidden !important;
	}

	.twl-ticket-seat-group {
		width: 100% !important;
		display: flex !important;
		flex-wrap: nowrap !important;
		justify-content: space-between !important;
		gap: 3px;
		min-width: 0 !important;
	}

	.twl-ticket-seat {
		border-radius: 4px;
		border-width: 1px;
		flex-basis: 14px;
		height: 14px;
		max-width: 14px;
		min-width: 14px;
		width: 14px;
		-webkit-tap-highlight-color: transparent;
	}

	.twl-ticket-seat span {
		font-size: 0;
	}

	.twl-ticket-seat.is-accessible span {
		font-size: 0;
	}

	.twl-ticket-seat.is-accessible::after {
		font-size: 9px;
	}

	.twl-ticket-venue-aisle {
		border-left-width: 1px;
		border-right-width: 1px;
		min-height: 14px;
		width: 8px;
	}

	.twl-ticket-venue-aisle span {
		display: none;
	}

	.twl-ticket-venue-front {
		position: sticky;
		top: 0;
		z-index: 2;
	}

	.twl-ticket-seat-modal-actions {
		bottom: -20px;
		gap: 12px;
		margin: 18px 0px -20px;
		padding: 14px 16px 16px;
	}

	.twl-ticket-seat-legend {
		flex-basis: 100%;
		justify-content: flex-start;
		margin-left: 0;
		order: 1;
	}

	.twl-ticket-confirm-seats {
		order: 2;
		width: 100%;
	}

	.twl-ticket-seat-modal-actions {
		flex-direction: column !important;
		align-items: center !important;
		justify-content: center !important;
		gap: 16px !important;
		padding-left: 16px;
		padding-right: 16px;
	}

	.twl-ticket-seat-legend {
		width: 100% !important;
		justify-content: center !important;
		flex-wrap: wrap !important;
		margin-left: 0 !important;
	}
}
