/* SL Portal Events: approved "Portal Event Card" design.
 * Colours/fonts follow the Samuel Leeds Online brand tokens (falls back to the hex values).
 * Mobile-first; the two-card desktop layout switches on at a card width of 760px (container query). */

.slpe {
	--slpe-gold: var(--sl-gold, #E0C353);
	--slpe-gold-light: var(--sl-gold-light, #F5DB7D);
	--slpe-gold-dark: var(--sl-gold-dark, #9E7422);
	--slpe-navy: var(--sl-navy, #1D2655);
	--slpe-grey: var(--sl-grey, #54595F);
	--slpe-muted: var(--sl-grey-muted, #BABABA);
	--slpe-page: var(--sl-page-bg, #F2F4F8);
	--slpe-line: #E1E4EB;
	--slpe-disabled: #E4E7EE;
	--slpe-on-dark: #FFFFFF;
	container-type: inline-size;
	font-family: "Poppins", sans-serif;
	color: var(--slpe-navy);
}
.slpe *, .slpe *::before, .slpe *::after { box-sizing: border-box; }

/* ---------- Layout (mobile: info → details → tickets) ---------- */
.slpe__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	grid-template-areas: "info" "details" "tickets";
	gap: 16px;
}
.slpe--no-details .slpe__grid { grid-template-areas: "info" "tickets"; }

.slpe__info,
.slpe__details,
.slpe__empty {
	background: #FFFFFF;
	border-radius: 8px;
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.slpe__info { grid-area: info; }
.slpe__details { grid-area: details; }
.slpe__tickets { grid-area: tickets; }
.slpe--multi .slpe__tickets { background: #FFFFFF; border-radius: 8px; padding: 20px; }

/* ---------- Info ---------- */
.slpe__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.slpe .slpe__title {
	margin: 0;
	font: 700 20px/1.3 "Alexandria", sans-serif;
	color: var(--slpe-navy);
	text-transform: none;
	letter-spacing: 0;
}
.slpe__badge {
	flex: none;
	margin-top: 2px;
	padding: 5px 10px;
	border: 1px solid var(--slpe-gold);
	border-radius: 999px;
	background: var(--slpe-gold);
	color: var(--slpe-navy);
	font: 600 11px/1.2 "Poppins", sans-serif;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	white-space: nowrap;
}
.slpe__badge--coming-soon,
.slpe__badge--no-tickets { background: transparent; border-color: var(--slpe-navy); }
.slpe__badge--sold-out,
.slpe__badge--closed { background: var(--slpe-page); border-color: var(--slpe-muted); color: var(--slpe-grey); }

.slpe p.slpe__when,
.slpe p.slpe__where { margin: 0; display: flex; flex-direction: column; gap: 2px; }
.slpe__date { font: 600 15px/1.45 "Poppins", sans-serif; }
.slpe__time { font: 400 15px/1.45 "Poppins", sans-serif; }
.slpe__venue { font: 600 14px/1.5 "Poppins", sans-serif; }
.slpe__address { font: 400 14px/1.5 "Poppins", sans-serif; color: var(--slpe-grey); }
.slpe p.slpe__price { margin: 0; font: 600 15px/1.4 "Poppins", sans-serif; }
.slpe__price .woocommerce-Price-amount { font: inherit; color: inherit; }

/* ---------- Details (menu / what's on) ---------- */
.slpe .slpe__details-title { margin: 0; font: 700 18px/1.3 "Alexandria", sans-serif; color: var(--slpe-navy); text-transform: none; }
.slpe__details-body {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font: 400 14px/1.5 "Poppins", sans-serif;
	color: var(--slpe-grey);
}
.slpe__details-body > * { margin: 0; }
.slpe__details-body h4,
.slpe__details-body h5,
.slpe__details-body h6 {
	margin: 10px 0 0;
	font: 600 12px/1.2 "Poppins", sans-serif;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--slpe-gold-dark);
}
.slpe__details-body > :first-child { margin-top: 0; }
/* Divider above every option label after the first (no <hr> needed in the content). */
.slpe__details-body h4 ~ h4 { margin-top: 10px; padding-top: 16px; border-top: 1px solid var(--slpe-line); }
.slpe__details-body hr + h4 { margin-top: 0; padding-top: 0; border-top: 0; }
.slpe__details-body p { line-height: 1.6; }
.slpe__details-body u,
.slpe__details-body span[style*="underline"] { text-decoration: none; }
.slpe__details-body strong,
.slpe__details-body b { font-weight: 600; color: var(--slpe-navy); }
.slpe__details-body hr { width: 100%; height: 1px; margin: 10px 0; border: 0; background: var(--slpe-line); }
.slpe__details-body a { color: var(--slpe-gold-dark); }
.slpe__details-body a:hover { color: var(--slpe-navy); }
.slpe__details-body ul,
.slpe__details-body ol { padding-left: 1.2em; }

/* ---------- Tickets ---------- */
.slpe .slpe__form { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.slpe .slpe__tickets-title { margin: 0 0 4px; font: 700 18px/1.3 "Alexandria", sans-serif; color: var(--slpe-navy); text-transform: none; }

.slpe__row {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 62px;
	padding: 8px 8px 8px 14px;
	background: #FFFFFF;
	border: 1px solid #EEF0F4;
	border-radius: 8px;
	box-shadow: 0 1px 2px rgba(17, 24, 45, 0.06), 0 3px 10px rgba(17, 24, 45, 0.08);
}
.slpe__row-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.slpe__row-label { font: 600 15px/1.4 "Poppins", sans-serif; color: var(--slpe-navy); }
.slpe__row-price { font: 400 13px/1.4 "Poppins", sans-serif; color: var(--slpe-grey); }
.slpe__row-status { padding-right: 8px; font: 600 13px/1.4 "Poppins", sans-serif; color: var(--slpe-grey); }
.slpe__row--off .slpe__row-label { color: var(--slpe-grey); }

.slpe__stepper { flex: none; display: flex; align-items: center; gap: 2px; }
.slpe .slpe__step {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	min-height: 0;
	padding: 0;
	margin: 0;
	border: 1px solid var(--slpe-navy);
	border-radius: 5px;
	background: #FFFFFF;
	color: var(--slpe-navy);
	box-shadow: none;
	cursor: pointer;
}
.slpe .slpe__step:hover:not(:disabled) { background: var(--slpe-page); color: var(--slpe-navy); }
.slpe .slpe__step:disabled { border-color: var(--slpe-muted); color: var(--slpe-muted); background: #FFFFFF; cursor: default; }
.slpe .slpe__qty {
	width: 36px;
	height: 44px;
	min-height: 0;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	text-align: center;
	font: 600 17px/1 "Poppins", sans-serif;
	color: var(--slpe-navy);
	appearance: textfield;
	-moz-appearance: textfield;
}
.slpe .slpe__qty::-webkit-outer-spin-button,
.slpe .slpe__qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.slpe .slpe__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 50px;
	margin: 0;
	padding: 15px 20px;
	border: 1px solid var(--slpe-gold);
	border-radius: 5px;
	background: var(--slpe-gold);
	color: var(--slpe-navy);
	font: 600 15px/1 "Poppins", sans-serif;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	box-shadow: none;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}
.slpe .slpe__btn:hover:not(:disabled) { background: var(--slpe-gold-light); border-color: var(--slpe-gold-light); color: var(--slpe-navy); }
.slpe .slpe__btn:disabled { background: var(--slpe-disabled); border-color: var(--slpe-disabled); color: var(--slpe-grey); cursor: default; }
.slpe--multi .slpe__btn { margin-top: 8px; }

.slpe p.slpe__note { margin: 0; font: 400 14px/1.45 "Poppins", sans-serif; color: var(--slpe-navy); }
/* Single-ticket cards on mobile: the button sits straight on the dark section background. */
.slpe--single p.slpe__note { color: var(--slpe-on-dark); text-align: center; }

.slpe__notices > * { margin: 0 !important; }

.slpe button:focus-visible,
.slpe input:focus-visible,
.slpe a:focus-visible { outline: 2px solid var(--slpe-gold); outline-offset: 2px; }

/* ---------- Empty slot ---------- */
.slpe__empty { gap: 8px; }
.slpe p.slpe__empty-text { margin: 0; font: 400 14px/1.5 "Poppins", sans-serif; color: var(--slpe-grey); }

/* ---------- Desktop: two cards, tickets at the bottom of the left one ---------- */
@container (min-width: 760px) {
	.slpe__grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
		grid-template-rows: auto 1fr;
		grid-template-areas: "info details" "tickets details";
		gap: 0 24px;
	}
	.slpe--no-details .slpe__grid {
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: auto auto;
		grid-template-areas: "info" "tickets";
	}

	.slpe__info { padding: 32px 32px 24px; gap: 24px; border-radius: 8px 8px 0 0; }
	.slpe .slpe__tickets,
	.slpe--multi .slpe__tickets {
		display: flex;
		flex-direction: column;
		justify-content: flex-end;
		padding: 0 32px 32px;
		background: #FFFFFF;
		border-radius: 0 0 8px 8px;
	}
	.slpe__details { padding: 32px; gap: 20px; }
	.slpe__empty { padding: 32px; }

	.slpe .slpe__title { font-size: 26px; line-height: 1.25; }
	.slpe__badge { margin-top: 4px; }
	.slpe__date, .slpe__time { font-size: 17px; line-height: 1.4; }
	.slpe__venue, .slpe__address, .slpe__details-body { font-size: 15px; }
	.slpe p.slpe__price { font-size: 17px; }
	.slpe .slpe__details-title { font-size: 22px; }
	.slpe .slpe__tickets-title { display: none; }
	.slpe__row { padding: 10px 10px 10px 16px; }
	.slpe--single p.slpe__note { color: var(--slpe-navy); text-align: left; }
}
