/**
 * Breakpoint Club Product Schedule & Instant Booking Styles
 *
 * Adheres strictly to project development standards:
 * - Rule 1: No inline CSS.
 * - Rule 2: All values use :root tokens.
 */

:root {
	--bp-sched-font: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	--bp-sched-primary: #8b74a1;
	--bp-sched-primary-dark: #705586;
	--bp-sched-primary-light: #f7f3fa;
	--bp-sched-accent: #67b022;
	--bp-sched-text: #1f2937;
	--bp-sched-muted: #64748b;
	--bp-sched-border: #e2e8f0;
	--bp-sched-card-bg: #ffffff;
	--bp-sched-row-bg: #f8fafc;
	--bp-sched-row-hover: #f1f5f9;
	--bp-sched-in-stock: #15803d;
	--bp-sched-in-stock-bg: #dcfce7;
	--bp-sched-sold-out: #b91c1c;
	--bp-sched-sold-out-bg: #fee2e2;
	--bp-sched-radius: 12px;
	--bp-sched-radius-sm: 8px;
	--bp-sched-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
	--bp-sched-shadow-hover: 0 8px 24px rgba(139, 116, 161, 0.15);
	--bp-sched-transition: all 0.2s ease-in-out;
}

.bp-schedule-container {
	font-family: var(--bp-sched-font);
	margin-top: 24px;
	margin-bottom: 36px;
}

/* ---------- Subtitle Notice Banner ---------- */
.bp-schedule-notice {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 16px;
	background: var(--bp-sched-primary-light);
	border: 1px solid rgba(139, 116, 161, 0.25);
	border-radius: var(--bp-sched-radius-sm);
	margin-bottom: 20px;
}

.bp-schedule-notice__icon {
	font-size: 18px;
	flex-shrink: 0;
}

.bp-schedule-notice__text {
	font-size: 13px;
	font-weight: 600;
	color: var(--bp-sched-primary-dark);
	line-height: 1.4;
}

/* ---------- Top Filters Bar (Day, Location, Coach) ---------- */
.bp-schedule-filters {
	display: grid;
	grid-template-columns: repeat(3, 1fr) auto;
	gap: 12px;
	align-items: flex-end;
	background: var(--bp-sched-card-bg);
	padding: 16px;
	border: 1px solid var(--bp-sched-border);
	border-radius: var(--bp-sched-radius);
	box-shadow: var(--bp-sched-shadow);
	margin-bottom: 16px;
}

.bp-schedule-filter-item {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.bp-schedule-filter-label {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--bp-sched-muted);
}

.bp-schedule-select {
	width: 100%;
	padding: 10px 14px;
	font-size: 14px;
	font-weight: 500;
	color: var(--bp-sched-text);
	background: var(--bp-sched-row-bg);
	border: 1px solid var(--bp-sched-border);
	border-radius: var(--bp-sched-radius-sm);
	cursor: pointer;
	outline: none;
	transition: var(--bp-sched-transition);
}

.bp-schedule-select:focus {
	border-color: var(--bp-sched-primary);
	background: #ffffff;
	box-shadow: 0 0 0 3px rgba(139, 116, 161, 0.15);
}

.bp-schedule-filter-reset {
	display: flex;
	align-items: flex-end;
}

.bp-schedule-reset-btn {
	padding: 10px 16px;
	font-size: 13px;
	font-weight: 600;
	color: var(--bp-sched-muted);
	background: var(--bp-sched-row-bg);
	border: 1px solid var(--bp-sched-border);
	border-radius: var(--bp-sched-radius-sm);
	cursor: pointer;
	transition: var(--bp-sched-transition);
	white-space: nowrap;
}

.bp-schedule-reset-btn:hover {
	color: var(--bp-sched-primary-dark);
	border-color: var(--bp-sched-primary);
	background: var(--bp-sched-primary-light);
}

.bp-schedule-reset-btn--large {
	padding: 12px 24px;
	font-size: 14px;
	margin-top: 14px;
	color: #ffffff;
	background: var(--bp-sched-primary);
	border: none;
}

.bp-schedule-reset-btn--large:hover {
	background: var(--bp-sched-primary-dark);
	color: #ffffff;
}

/* ---------- Status Bar ---------- */
.bp-schedule-status {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 16px;
	padding: 0 4px;
}

.bp-schedule-count {
	font-size: 13px;
	font-weight: 600;
	color: var(--bp-sched-muted);
}

/* ---------- Grouped Sessions ---------- */
.bp-schedule-groups {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.bp-schedule-group {
	background: var(--bp-sched-card-bg);
	border: 1px solid var(--bp-sched-border);
	border-radius: var(--bp-sched-radius);
	overflow: hidden;
	box-shadow: var(--bp-sched-shadow);
	transition: var(--bp-sched-transition);
}

.bp-schedule-group:hover {
	border-color: rgba(139, 116, 161, 0.4);
	box-shadow: var(--bp-sched-shadow-hover);
}

.bp-schedule-group.is-filtered-out {
	display: none;
}

.bp-schedule-group__header {
	padding: 16px 20px;
	background: linear-gradient(135deg, var(--bp-sched-primary-light) 0%, #ffffff 100%);
	border-bottom: 1px solid var(--bp-sched-border);
}

.bp-schedule-group__title {
	margin: 0;
	font-size: 15px;
	font-weight: 700;
	color: var(--bp-sched-text);
	line-height: 1.4;
}

/* ---------- Date Rows ---------- */
.bp-schedule-dates {
	list-style: none;
	margin: 0;
	padding: 0;
}

.bp-schedule-date-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 20px;
	border-bottom: 1px solid var(--bp-sched-border);
	background: var(--bp-sched-card-bg);
	transition: var(--bp-sched-transition);
}

.bp-schedule-date-row:last-child {
	border-bottom: none;
}

.bp-schedule-date-row:hover {
	background: var(--bp-sched-row-bg);
}

.bp-schedule-date-row.is-soldout {
	opacity: 0.72;
	background: #fdfdfd;
}

.bp-schedule-date-info {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.bp-schedule-date-name {
	font-size: 14px;
	font-weight: 600;
	color: var(--bp-sched-text);
}

.bp-schedule-spot-badge {
	font-size: 12px;
	font-weight: 700;
	padding: 3px 8px;
	border-radius: 9999px;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.bp-spot--in-stock {
	color: var(--bp-sched-in-stock);
	background: var(--bp-sched-in-stock-bg);
}

.bp-spot--sold-out {
	color: var(--bp-sched-sold-out);
	background: var(--bp-sched-sold-out-bg);
	text-transform: uppercase;
	font-size: 11px;
	letter-spacing: 0.04em;
}

.bp-schedule-date-action {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-shrink: 0;
}

.bp-schedule-date-price {
	font-size: 15px;
	font-weight: 700;
	color: var(--bp-sched-text);
}

/* ---------- 1-Click Add to Cart Button ---------- */
.bp-schedule-add-btn {
	background: var(--bp-sched-primary);
	color: #ffffff;
	border: none;
	padding: 9px 18px;
	font-size: 13px;
	font-weight: 700;
	border-radius: var(--bp-sched-radius-sm);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: var(--bp-sched-transition);
	box-shadow: 0 2px 8px rgba(139, 116, 161, 0.25);
}

.bp-schedule-add-btn:hover:not(:disabled) {
	background: var(--bp-sched-primary-dark);
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(139, 116, 161, 0.35);
}

.bp-schedule-add-btn.is-loading {
	opacity: 0.8;
	cursor: wait;
	pointer-events: none;
}

.bp-schedule-add-btn--soldout {
	background: var(--bp-sched-row-bg);
	color: var(--bp-sched-muted);
	border: 1px solid var(--bp-sched-border);
	cursor: not-allowed;
	box-shadow: none;
}

/* ---------- Empty Search Results ---------- */
.bp-schedule-no-results {
	text-align: center;
	padding: 40px 20px;
	background: var(--bp-sched-card-bg);
	border: 1px dashed var(--bp-sched-border);
	border-radius: var(--bp-sched-radius);
	margin-top: 10px;
}

.bp-schedule-no-results.bp-is-hidden {
	display: none;
}

.bp-schedule-no-results__icon {
	font-size: 36px;
	margin-bottom: 10px;
}

.bp-schedule-no-results h4 {
	margin: 0 0 6px;
	font-size: 16px;
	color: var(--bp-sched-text);
}

.bp-schedule-no-results p {
	margin: 0;
	font-size: 14px;
	color: var(--bp-sched-muted);
}

/* ---------- Responsive Layout ---------- */
@media (max-width: 768px) {
	.bp-schedule-filters {
		grid-template-columns: 1fr;
		gap: 10px;
	}
	.bp-schedule-date-row {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}
	.bp-schedule-date-action {
		width: 100%;
		justify-content: space-between;
	}
	.bp-schedule-add-btn {
		flex: 1;
		max-width: 180px;
		text-align: center;
	}
}
