/**
 * Prize Draw widget (frontend only).
 * Colours and type use BTFC theme CSS variables from tokens.css.
 */

.btfc-widget--prize-draw {
	box-sizing: border-box;
	width: 100%;
	max-width: none;
	margin: 0;
	padding: clamp(1.25rem, 3vw, 2.5rem) clamp(1.25rem, 4vw, 3rem);
	border: none;
	border-radius: 0;
	background: var(--btfc-navy);
	color: var(--btfc-text-on-navy);
	font-family: var(--btfc-font-body);
	font-size: clamp(0.9375rem, 2vw, 1.125rem);
	line-height: 1.45;
	overflow-x: hidden;
}

.btfc-widget--prize-draw *,
.btfc-widget--prize-draw *::before,
.btfc-widget--prize-draw *::after {
	box-sizing: border-box;
}

.btfc-prize-draw__grid {
	display: grid;
	gap: clamp(1.5rem, 4vw, 2.5rem);
	width: 100%;
}

.btfc-prize-draw--two-cols .btfc-prize-draw__grid {
	grid-template-columns: 1fr 1fr;
	align-items: start;
}

.btfc-prize-draw--one-col .btfc-prize-draw__grid {
	grid-template-columns: minmax(0, 1fr);
}

@media (max-width: 47.99rem) {
	.btfc-prize-draw--two-cols .btfc-prize-draw__grid {
		grid-template-columns: 1fr;
	}
}

.btfc-prize-draw__col {
	min-width: 0;
}

.btfc-prize-draw__heading {
	margin: 0 0 clamp(0.75rem, 2vw, 1.25rem);
	font-family: var(--btfc-font-display);
	font-size: clamp(1.375rem, 3.2vw, 1.75rem);
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: #ffffff;
}

.btfc-prize-draw__entries {
	margin: 0;
	padding: 0;
	list-style: none;
}

.btfc-prize-draw__entry {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: clamp(0.5rem, 1.5vw, 0.75rem);
	margin: 0;
	padding: 0;
	max-width: 100%;
}

.btfc-prize-draw__entry + .btfc-prize-draw__entry {
	margin-top: clamp(0.65rem, 1.8vw, 1rem);
}

.btfc-prize-draw__prize-slot {
	flex: 0 0 5.5rem;
	width: 5.5rem;
	max-width: 5.5rem;
}

.btfc-prize-draw__ticket-slot {
	flex: 0 0 3.25rem;
	width: 3.25rem;
	max-width: 3.25rem;
	margin-left: auto;
}

.btfc-prize-draw__prize {
	flex: 0 0 5.5rem;
	width: 5.5rem;
	max-width: 5.5rem;
	padding: 0.3rem 0.55rem;
	font-family: var(--btfc-font-body);
	font-size: clamp(0.9375rem, 2vw, 1.0625rem);
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	color: var(--btfc-navy);
	background: var(--btfc-gold);
}

.btfc-prize-draw__name {
	flex: 1 1 8rem;
	min-width: 0;
	font-family: var(--btfc-font-body);
	font-weight: 400;
	line-height: 1.35;
	color: #ffffff;
	overflow-wrap: anywhere;
	word-break: break-word;
}

/* Editorial page typography (.entry-content) outranks widget colours on standard pages; isolate Prize Draw text. */
body.page .btfc-page .entry-content .btfc-widget--prize-draw .btfc-prize-draw__heading,
body.page .btfc-page .entry-content .btfc-widget--prize-draw .btfc-prize-draw__name {
	color: #fff;
}

.btfc-prize-draw__ticket {
	flex: 0 0 auto;
	margin-left: auto;
	min-width: 3.25rem;
	padding: 0.2rem 0.55rem;
	font-family: var(--btfc-font-body);
	font-size: clamp(0.875rem, 1.8vw, 1rem);
	font-weight: 600;
	line-height: 1.25;
	text-align: center;
	color: var(--btfc-gold);
	background: transparent;
	border: 2px solid var(--btfc-gold);
}

.btfc-widget--prize-draw.btfc-widget--empty {
	text-align: center;
}

.btfc-prize-draw__empty {
	margin: 0;
	font-family: var(--btfc-font-body);
	font-size: 1rem;
	color: var(--btfc-text-on-navy);
	opacity: 0.85;
}