/* ==========================================================================
   Tickera Elementor Booking — booking-widget.css
   WAX Burner brand colours baked in.
   Cyan  #00b4d8  — primary accent (active states, CTA, countdown)
   Pink  #e6007e  — urgency accent (tier banner)
   ========================================================================== */

/* ── Brand tokens ───────────────────────────────────────────────────────────── */
.teb-booking-widget {
	--teb-cyan:        #00b4d8;
	--teb-cyan-dark:   #009dbf;
	--teb-pink:        #e6007e;
	--teb-pink-dark:   #c4006b;
	--teb-bg:          #000000;
	--teb-surface:     #111111;
	--teb-surface-mid: #1a1a1a;
	--teb-border:      #2a2a2a;
	--teb-border-mid:  #3a3a3a;
	--teb-text:        #ffffff;
	--teb-text-muted:  #888888;
	--teb-text-dim:    #555555;
}

/* ── Container ─────────────────────────────────────────────────────────────── */
.teb-booking-widget {
	font-family: inherit;
	color: var(--teb-text);
	box-sizing: border-box;
}

.teb-booking-widget *,
.teb-booking-widget *::before,
.teb-booking-widget *::after {
	box-sizing: inherit;
}

/* ── Tier Pricing Banner ────────────────────────────────────────────────────── */
.teb-tier-banner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 0.5rem;
	padding: 0.75rem 1rem;
	margin-bottom: 1.75rem;
	border-radius: 4px;
	background-color: var(--teb-surface);
	border: 1px solid var(--teb-border);
	border-left: 3px solid var(--teb-pink);
}

.teb-tier-banner__left {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.teb-tier-banner__name {
	font-weight: 700;
	font-size: 0.875rem;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--teb-text);
}

.teb-tier-banner__discount {
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	color: #000000;
	background-color: var(--teb-pink);
	padding: 0.15rem 0.5rem;
	border-radius: 3px;
}

.teb-tier-banner__right {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	flex-wrap: wrap;
}

.teb-tier-banner__label {
	font-size: 0.8rem;
	color: var(--teb-text-muted);
}

.teb-tier-banner__timer {
	font-size: 0.9rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.02em;
	color: var(--teb-cyan);
}

/* ── Steps ──────────────────────────────────────────────────────────────────── */
.teb-step {
	margin-bottom: 2rem;
}

.teb-step__heading {
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	margin: 0 0 0.875rem;
	line-height: 1.3;
	color: var(--teb-text);
}

/* ── Date / Time Grids ──────────────────────────────────────────────────────── */
.teb-date-grid,
.teb-time-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

/* ── Date & Time Buttons ────────────────────────────────────────────────────── */
.teb-date-btn,
.teb-time-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.55rem 1.1rem;
	border: 1px solid var(--teb-border-mid);
	border-radius: 4px;
	background-color: var(--teb-surface-mid);
	color: #cccccc;
	font-family: inherit;
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	line-height: 1.4;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
	text-align: center;
	white-space: nowrap;
}

.teb-date-btn:hover,
.teb-time-btn:hover {
	border-color: var(--teb-cyan);
	background-color: #222222;
	color: var(--teb-text);
}

.teb-date-btn.is-active,
.teb-time-btn.is-active {
	background-color: var(--teb-cyan);
	color: #000000;
	border-color: var(--teb-cyan);
	font-weight: 700;
}

/* ── Ticket List ────────────────────────────────────────────────────────────── */
.teb-ticket-list {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

/* ── Ticket Row ─────────────────────────────────────────────────────────────── */
.teb-ticket-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.875rem 1rem;
	border: 1px solid var(--teb-border);
	border-radius: 4px;
	background-color: var(--teb-surface-mid);
}

.teb-ticket__info {
	flex: 1 1 0;
	min-width: 0;
}

.teb-ticket__name {
	font-weight: 700;
	font-size: 0.95rem;
	margin: 0 0 0.2rem;
	line-height: 1.3;
	color: var(--teb-text);
}

/* ── Product Description ────────────────────────────────────────────────────── */
.teb-ticket__description {
	font-size: 0.8rem;
	color: var(--teb-text-muted);
	margin: 0 0 0.35rem;
	line-height: 1.5;
}

.teb-ticket__description p {
	margin: 0;
}

.teb-ticket__description p + p {
	margin-top: 0.25rem;
}

/* ── Pricing ────────────────────────────────────────────────────────────────── */
.teb-ticket__price {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 0.375rem;
	font-size: 0.9rem;
}

.teb-price--regular {
	text-decoration: line-through;
	opacity: 0.4;
	color: var(--teb-text);
}

.teb-price--regular .woocommerce-Price-currencySymbol,
.teb-price--active  .woocommerce-Price-currencySymbol {
	font-size: inherit;
}

.teb-price--active {
	font-weight: 700;
	color: var(--teb-cyan);
}

/* ── Quantity Controls ──────────────────────────────────────────────────────── */
.teb-qty {
	display: flex;
	align-items: center;
	gap: 0.375rem;
	flex-shrink: 0;
}

.teb-qty__btn {
	width: 2rem;
	height: 2rem;
	border: 1px solid var(--teb-border-mid);
	border-radius: 4px;
	background-color: var(--teb-surface);
	color: var(--teb-text);
	font-size: 1.1rem;
	line-height: 1;
	font-family: inherit;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.1s ease, border-color 0.1s ease;
	padding: 0;
}

.teb-qty__btn:hover:not(:disabled) {
	background-color: #222222;
	border-color: var(--teb-cyan);
	color: var(--teb-cyan);
}

.teb-qty__btn:disabled {
	opacity: 0.25;
	cursor: not-allowed;
}

.teb-qty__value {
	min-width: 1.75rem;
	text-align: center;
	font-weight: 700;
	font-size: 0.95rem;
	line-height: 1;
	color: var(--teb-text);
}

/* ── Footer ─────────────────────────────────────────────────────────────────── */
.teb-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1rem;
	margin-top: 1.5rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--teb-border);
}

.teb-footer__summary {
	display: flex;
	align-items: baseline;
	gap: 0.5rem;
}

.teb-footer__total-label {
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--teb-text-muted);
}

.teb-footer__total {
	font-size: 1.4rem;
	font-weight: 700;
	color: var(--teb-cyan);
}

/* ── Add to Cart Button ─────────────────────────────────────────────────────── */
.teb-btn-atc {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.8rem 2.5rem;
	background-color: var(--teb-cyan);
	color: #000000;
	border: none;
	border-radius: 4px;
	font-family: inherit;
	font-size: 0.875rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	line-height: 1.4;
	cursor: pointer;
	transition: background-color 0.15s ease;
	white-space: nowrap;
}

.teb-btn-atc:hover:not(:disabled) {
	background-color: var(--teb-cyan-dark);
}

.teb-btn-atc:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

/* ── Messages ───────────────────────────────────────────────────────────────── */
.teb-message {
	margin-top: 1rem;
	padding: 0.75rem 1rem;
	border-radius: 4px;
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.5;
}

.teb-message--loading {
	background-color: rgba(0, 180, 216, 0.1);
	color: var(--teb-cyan);
}

.teb-message--success {
	background-color: rgba(27, 126, 46, 0.15);
	color: #6fcf97;
}

.teb-message--error {
	background-color: rgba(230, 0, 126, 0.12);
	color: #ff6eb4;
}

/* ── Skeleton Loading State ─────────────────────────────────────────────────── */
.teb-skeleton__btn {
	display: inline-block;
	width: 110px;
	height: 36px;
	border-radius: 4px;
	background: linear-gradient(
		90deg,
		#1a1a1a 25%,
		#2a2a2a 50%,
		#1a1a1a 75%
	);
	background-size: 200% 100%;
	animation: teb-shimmer 1.4s infinite linear;
}

@keyframes teb-shimmer {
	0%   { background-position: 200% 0; }
	100% { background-position: -200% 0; }
}

/* ── Editor Placeholder ─────────────────────────────────────────────────────── */
.teb-editor-placeholder {
	padding: 2rem;
	border: 2px dashed #333333;
	border-radius: 4px;
	text-align: center;
	color: var(--teb-text-dim);
	background-color: var(--teb-surface);
}

.teb-editor-placeholder p {
	margin: 0.25rem 0;
	font-size: 0.875rem;
}

/* ── Unavailable State ──────────────────────────────────────────────────────── */
.teb-no-results {
	color: var(--teb-text-dim);
	font-size: 0.875rem;
	margin: 0;
}

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media ( max-width: 600px ) {
	.teb-footer {
		flex-direction: column;
		align-items: stretch;
	}

	.teb-btn-atc {
		width: 100%;
		justify-content: center;
	}

	.teb-ticket-row {
		align-items: center;
	}

	.teb-date-grid,
	.teb-time-grid {
		gap: 0.375rem;
	}

	.teb-tier-banner {
		flex-direction: column;
		align-items: flex-start;
	}
}
