/* Sugar Hill Christmas Mystery Box — colours taken from the campaign poster */
.shc-section,
.shc-popup,
.shc-gift {
	--shc-green: #1b5e20;
	--shc-green-soft: #e8f1e6;
	--shc-red: #c4161c;
	--shc-red-dark: #9e1015;
	--shc-gold: #d6a531;
	--shc-ink: #2b2b2b;
	--shc-muted: #5f6b5f;
}

/* ---------- Section ---------- */
.shc-section {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
	gap: clamp(20px, 4vw, 56px);
	align-items: center;
	margin: 40px 0;
	padding: clamp(18px, 3.5vw, 44px);
	background: #fff;
	border: 1px solid #efe3cf;
	border-top: 6px solid var(--shc-red);
	border-radius: 16px;
	color: var(--shc-ink);
}
.shc-section[data-state="ended"],
.shc-section[data-state="upcoming"][data-teaser="0"] { display: none; }
.shc-section[data-state="upcoming"] .shc-live-only,
.shc-section[data-state="live"] .shc-upcoming-only { display: none !important; }

.shc-section__img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 12px;
}
.shc-section__placeholder {
	display: grid;
	place-items: center;
	aspect-ratio: 1;
	font-size: 96px;
	background: var(--shc-green-soft);
	border-radius: 12px;
}

.shc-tag {
	display: inline-block;
	margin: 0 0 12px;
	padding: 5px 12px;
	font-size: 13px;
	font-weight: 600;
	color: var(--shc-red);
	background: #fdecec;
	border-radius: 999px;
}
.shc-title {
	margin: 0 0 12px;
	font-size: clamp(26px, 3.2vw, 38px);
	line-height: 1.15;
	font-weight: 800;
	color: var(--shc-green);
}
.shc-desc {
	max-width: 52ch;
	margin: 0 0 20px;
	font-size: 16px;
	line-height: 1.6;
	color: var(--shc-muted);
}

.shc-price-row {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px 16px;
	margin-bottom: 10px;
}
.shc-price {
	font-size: clamp(24px, 2.6vw, 30px);
	font-weight: 800;
	color: var(--shc-red);
}
.shc-slots {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	color: var(--shc-green);
}
.shc-progress {
	height: 8px;
	margin-bottom: 22px;
	overflow: hidden;
	background: #f1e8da;
	border-radius: 999px;
}
.shc-progress span {
	display: block;
	height: 100%;
	background: var(--shc-gold);
	border-radius: inherit;
}

.shc-perks {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px 20px;
	margin: 0 0 20px;
	padding: 0;
	list-style: none;
}
.shc-perks li {
	position: relative;
	padding-left: 24px;
	font-size: 15px;
	line-height: 1.4;
}
.shc-perks li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 3px;
	width: 7px;
	height: 12px;
	border: solid var(--shc-green);
	border-width: 0 2.5px 2.5px 0;
	transform: rotate(45deg);
}

.shc-for-label {
	margin: 0 0 8px;
	font-size: 14px;
	color: var(--shc-muted);
}
.shc-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 26px;
}
.shc-chips span {
	padding: 4px 11px;
	font-size: 13px;
	color: var(--shc-green);
	background: var(--shc-green-soft);
	border-radius: 999px;
}

.shc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.shc-when { margin: 0; font-size: 14px; color: var(--shc-muted); }
.shc-countdown { font-weight: 700; color: var(--shc-green); font-variant-numeric: tabular-nums; }

/* ---------- Buttons ---------- */
.shc-btn,
.shc-btn:visited {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 12px 28px;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	color: #fff !important;
	text-decoration: none !important;
	background: var(--shc-red);
	border: 0;
	border-radius: 999px;
	cursor: pointer;
	transition: background-color .15s ease;
}
.shc-btn:hover { background: var(--shc-red-dark); }
.shc-btn:focus-visible,
.shc-popup__close:focus-visible,
.shc-later:focus-visible { outline: 3px solid var(--shc-gold); outline-offset: 3px; }
.shc-btn--green { background: var(--shc-green); }
.shc-btn--green:hover { background: #134516; }
.shc-btn--block { width: 100%; }
.shc-btn.is-disabled { background: #b9b9b9; cursor: not-allowed; }

/* ---------- Pop-up ---------- */
html.shc-lock { overflow: hidden; }
.shc-popup {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}
.shc-popup[hidden] { display: none; }
.shc-popup__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(12, 32, 14, .62);
	opacity: 0;
	transition: opacity .25s ease;
}
.shc-popup__card {
	position: relative;
	width: 100%;
	max-width: 430px;
	max-height: calc(100vh - 32px);
	overflow: auto;
	background: #fff;
	border-radius: 18px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
	opacity: 0;
	transform: translateY(18px) scale(.97);
	transition: opacity .25s ease, transform .25s ease;
}
.shc-popup.is-open .shc-popup__backdrop { opacity: 1; }
.shc-popup.is-open .shc-popup__card { opacity: 1; transform: none; }
.shc-popup__img {
	display: block;
	width: 100%;
	max-height: 62vh;
	height: auto;
	object-fit: contain;
	background: #fff;
}
.shc-popup__body { padding: 14px 20px 18px; text-align: center; }
.shc-popup__title { margin: 0 0 6px; font-size: 22px; font-weight: 800; color: var(--shc-green); }
.shc-popup__body .shc-slots { margin-bottom: 12px; }
.shc-popup__close {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 2;
	width: 38px;
	height: 38px;
	padding: 0;
	font-size: 24px;
	line-height: 38px;
	color: #222;
	background: rgba(255, 255, 255, .95);
	border: 0;
	border-radius: 50%;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
	cursor: pointer;
}
.shc-later {
	margin-top: 8px;
	padding: 6px;
	font-size: 14px;
	color: #6b6b6b;
	text-decoration: underline;
	background: none;
	border: 0;
	cursor: pointer;
}

/* ---------- Product page ---------- */
.shc-gift {
	margin: 0 0 20px;
	padding: 16px 18px;
	background: #fbf7ef;
	border: 1px solid #efe3cf;
	border-radius: 12px;
}
.shc-gift__title { margin: 0 0 10px; font-weight: 700; color: var(--shc-green); }
.shc-gift__title span { font-weight: 400; color: var(--shc-muted); }
.shc-gift p { margin: 0 0 10px; }
.shc-gift label { display: block; margin-bottom: 4px; font-size: 14px; font-weight: 600; }
.shc-gift input,
.shc-gift textarea { width: 100%; }
.shc-gift .shc-gift__hint { margin: 0; font-size: 13px; color: var(--shc-muted); }
.shc-closed {
	padding: 12px 16px;
	font-weight: 600;
	color: #7a4b00;
	background: #fff4dc;
	border-radius: 10px;
}

/* ---------- Responsive & motion ---------- */
@media (max-width: 860px) {
	.shc-section { grid-template-columns: 1fr; }
	.shc-section__media { max-width: 520px; margin: 0 auto; width: 100%; }
}
@media (max-width: 420px) {
	.shc-perks { grid-template-columns: 1fr; }
	.shc-actions .shc-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
	.shc-popup__backdrop,
	.shc-popup__card { transition: none; }
}
