/* Flat Broke Webinar — frontend */

.fbw-webinar-form {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-top: 12px;
}

.fbw-grid-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	font-size: 14px;
}

.fbw-grid-title { font-weight: 600; }

.fbw-grid-legend {
	display: inline-flex;
	gap: 12px;
	align-items: center;
	font-size: 12px;
	color: #555;
}

.fbw-legend {
	display: inline-block;
	width: 12px;
	height: 12px;
	border-radius: 3px;
	vertical-align: middle;
	margin-right: 4px;
	border: 1px solid rgba(0,0,0,.15);
}

.fbw-legend--available { background: #fff; }
.fbw-legend--selected  { background: #1976d2; border-color: #1565c0; }
.fbw-legend--taken     { background: #d0d0d0; }

.fbw-seat-grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 10px;
	max-width: 480px;
}

.fbw-seat {
	appearance: none;
	-webkit-appearance: none;
	background: #fff;
	border: 2px solid #c9c9c9;
	border-radius: 8px;
	padding: 0;
	aspect-ratio: 1 / 1;
	font-size: 18px;
	font-weight: 600;
	color: #222;
	cursor: pointer;
	transition: transform .08s ease, border-color .15s ease, background .15s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

.fbw-seat:hover:not(:disabled) {
	border-color: #1976d2;
	transform: translateY(-1px);
}

.fbw-seat.is-selected,
.fbw-seat[aria-pressed="true"] {
	background: #1976d2;
	border-color: #1565c0;
	color: #fff;
}

.fbw-seat--reserved:not(.fbw-seat--mine),
.fbw-seat--sold,
.fbw-seat:disabled {
	background: #e8e8e8;
	border-color: #d0d0d0;
	color: #888;
	cursor: not-allowed;
}

.fbw-seat--mine {
	background: #fff7d6;
	border-color: #d4a017;
	color: #6b4f00;
}

.fbw-summary {
	display: flex;
	gap: 24px;
	flex-wrap: wrap;
	padding: 12px 0;
	border-top: 1px solid #eee;
	border-bottom: 1px solid #eee;
	font-size: 15px;
}

.fbw-summary-line { display: inline-flex; gap: 6px; }

.fbw-add-to-cart:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.fbw-closed-notice {
	font-weight: 600;
}

.fbw-empty {
	font-style: italic;
	color: #777;
}

/* Cart / checkout countdown */
.fbw-countdown {
	margin-bottom: 16px;
}

.fbw-countdown-clock {
	font-variant-numeric: tabular-nums;
	font-size: 1.1em;
	margin: 0 4px;
}

.fbw-countdown.is-warning  { background: #fff3cd !important; color: #6b4f00 !important; }
.fbw-countdown.is-critical { background: #f8d7da !important; color: #842029 !important; }

@media (max-width: 480px) {
	.fbw-seat-grid { gap: 8px; }
	.fbw-seat { font-size: 16px; }
}
