.cremo-variety-popup {
	align-items: center;
	background: rgba(0, 0, 0, .68);
	display: flex;
	inset: 0;
	justify-content: center;
	opacity: 0;
	padding: 32px;
	pointer-events: none;
	position: fixed;
	transition: opacity .3s ease;
	z-index: 100020;
}

.cremo-variety-popup[hidden] { display: none !important; }
.cremo-variety-popup.is-visible { opacity: 1; pointer-events: auto; }
.cremo-variety-popup.is-leaving { opacity: 0; }

.cremo-variety-popup__card {
	background: #f2e3cf;
	border: 1px solid rgba(234, 193, 49, .82);
	box-shadow: 0 28px 90px rgba(0, 0, 0, .62);
	display: grid;
	grid-template-columns: minmax(280px, .92fr) minmax(370px, 1.08fr);
	max-height: calc(100vh - 64px);
	max-height: calc(100dvh - 64px);
	overflow: hidden;
	pointer-events: auto;
	position: relative;
	transform: scale(.95) translateY(12px);
	transition: transform .3s cubic-bezier(.2, .8, .3, 1);
	width: min(920px, calc(100vw - 64px));
}

.cremo-variety-popup.is-visible .cremo-variety-popup__card { transform: none; }

.cremo-variety-popup__media {
	background: #1b0e08;
	min-height: 520px;
	overflow: hidden;
	pointer-events: none;
	position: relative;
}

.cremo-variety-popup__media img {
	display: block;
	filter: brightness(1.2) contrast(1.1);
	height: 100%;
	inset: 0;
	object-fit: cover;
	position: absolute;
	width: 100%;
}

.cremo-variety-popup__body {
	align-self: center;
	background: #f2e3cf;
	color: #25150d;
	max-height: calc(100vh - 64px);
	max-height: calc(100dvh - 64px);
	overflow-y: auto;
	padding: 58px 58px 50px;
	position: relative;
	z-index: 1;
}

.cremo-variety-popup__eyebrow {
	color: #8b6612;
	font: 800 11px/1.35 Arial, sans-serif;
	letter-spacing: .19em;
	margin: 0 44px 10px 0;
	text-transform: uppercase;
}

.cremo-variety-popup h2 {
	color: #2a170e;
	font: 800 34px/1.12 Martel, Georgia, serif;
	margin: 0 28px 15px 0;
}

.cremo-variety-popup__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 23px;
}

.cremo-variety-popup__tags span {
	background: #fff8ee;
	border: 1px solid rgba(78, 48, 31, .26);
	border-radius: 999px;
	color: #4d2f1e;
	font: 800 9px/1 Arial, sans-serif;
	letter-spacing: .1em;
	padding: 8px 11px 7px;
	text-transform: uppercase;
}

.cremo-variety-popup__body > p:not(.cremo-variety-popup__eyebrow) {
	color: #5d4333;
	font: 400 15px/1.62 Martel, Georgia, serif;
	margin: 0 0 27px;
}

.cremo-variety-popup__cta {
	align-items: center;
	background: #eac131;
	border: 1px solid #d9ac12;
	box-shadow: 0 5px 14px rgba(106, 75, 4, .15);
	color: #21120b !important;
	display: inline-flex;
	font: 800 12px/1 Arial, sans-serif;
	justify-content: center;
	letter-spacing: .12em;
	min-height: 50px;
	padding: 14px 23px;
	text-decoration: none !important;
	text-transform: uppercase;
	transition: background-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.cremo-variety-popup__cta:hover,
.cremo-variety-popup__cta:focus {
	background: #f4d45a;
	box-shadow: 0 8px 20px rgba(106, 75, 4, .23);
	color: #21120b !important;
	transform: translateY(-2px);
}

.cremo-variety-popup__decline {
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	color: #654b3c !important;
	cursor: pointer;
	display: block;
	font: 400 13px/1.3 Martel, Georgia, serif !important;
	margin: 16px 0 0 !important;
	padding: 2px 0 !important;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.cremo-variety-popup__close {
	align-items: center;
	background: rgba(42, 23, 14, .08) !important;
	border: 0 !important;
	border-radius: 50% !important;
	box-shadow: none !important;
	color: #2a170e !important;
	cursor: pointer;
	display: flex;
	font: 300 34px/1 Arial, sans-serif !important;
	height: 48px !important;
	justify-content: center;
	min-height: 48px !important;
	min-width: 48px !important;
	padding: 0 0 4px !important;
	position: absolute;
	right: 14px;
	top: 14px;
	transition: background-color .18s ease, transform .18s ease;
	width: 48px !important;
	z-index: 3;
}

.cremo-variety-popup__close::before,
.cremo-variety-popup__close::after { content: none !important; display: none !important; }
.cremo-variety-popup__close:hover,
.cremo-variety-popup__close:focus { background: rgba(42, 23, 14, .16) !important; transform: rotate(90deg); }

body.cremo-variety-popup-open { overscroll-behavior: none; }

@media (max-width: 767px) {
	.cremo-variety-popup {
		align-items: center;
		padding: 22px 18px 104px;
	}
	.cremo-variety-popup__card {
		display: grid;
		grid-template-columns: 1fr;
		grid-template-rows: clamp(220px, 34dvh, 300px) minmax(0, 1fr);
		max-height: calc(100vh - 142px);
		max-height: calc(100dvh - 142px);
		width: min(460px, calc(100vw - 36px));
	}
	/* Fill the photo band edge to edge (no black side bars). The 3:4 photo is
	   cropped top and bottom only; 62% keeps the whole cigar bundle in frame. */
	.cremo-variety-popup__media { background: #f2e3cf; min-height: 0; }
	.cremo-variety-popup__media img {
		height: 100%;
		object-fit: cover;
		object-position: 50% 62%;
		width: 100%;
	}
	.cremo-variety-popup__body {
		max-height: none;
		min-height: 0;
		padding: 28px 24px 25px;
	}
	.cremo-variety-popup__eyebrow { font-size: 9px; margin-right: 42px; }
	.cremo-variety-popup h2 { font-size: 23px; line-height: 1.16; margin: 0 36px 12px 0; }
	.cremo-variety-popup__tags { gap: 6px; margin-bottom: 16px; }
	.cremo-variety-popup__tags span { font-size: 8px; padding: 7px 9px 6px; }
	.cremo-variety-popup__body > p:not(.cremo-variety-popup__eyebrow) { font-size: 13px; line-height: 1.5; margin-bottom: 19px; }
	.cremo-variety-popup__cta { font-size: 10px; min-height: 46px; padding: 12px 16px; width: 100%; }
	.cremo-variety-popup__decline { margin-top: 13px !important; text-align: center; width: 100%; }
	.cremo-variety-popup__close { height: 44px !important; min-height: 44px !important; min-width: 44px !important; right: 9px; top: 9px; width: 44px !important; }
}

@media (max-height: 680px) and (min-width: 768px) {
	.cremo-variety-popup__card { max-height: calc(100vh - 32px); min-height: 0; }
	.cremo-variety-popup__media { min-height: 460px; }
	.cremo-variety-popup__body { max-height: calc(100vh - 32px); padding-bottom: 32px; padding-top: 40px; }
}

@media (prefers-reduced-motion: reduce) {
	.cremo-variety-popup,
	.cremo-variety-popup__card,
	.cremo-variety-popup__cta,
	.cremo-variety-popup__close { transition: none !important; }
}

/* Gift Boxes pop-up (Dec 3 to 15, 2026). Mar's reference (2026-12-02): the offer sits on the
 * photo (no separate badges), the copy is short and centered, one clear yellow button. */
.cremo-gift-popup .cremo-variety-popup__media::after {
	content: "";
	position: absolute;
	inset: auto 0 0;
	height: 58%;
	background: linear-gradient(180deg, rgba(20, 10, 5, 0), rgba(20, 10, 5, .78) 55%, rgba(20, 10, 5, .9));
	z-index: 1;
}
.cremo-gift-popup .cremo-gift-popup__offer {
	position: absolute;
	inset: auto 16px 26px;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	margin: 0;
	color: #fff;
	text-align: center;
	text-shadow: 0 2px 10px rgba(0, 0, 0, .45);
}
.cremo-gift-popup .cremo-gift-popup__offer-kicker {
	color: #eac131;
	font: 800 12px/1.3 Arial, sans-serif;
	letter-spacing: .2em;
	text-transform: uppercase;
}
.cremo-gift-popup .cremo-gift-popup__offer-main {
	color: #fff;
	font: 700 26px/1.15 Martel, Georgia, serif;
	text-wrap: balance;
}
.cremo-gift-popup .cremo-gift-popup__offer-date {
	color: #fff;
	font: 400 16px/1.3 Martel, Georgia, serif;
}
.cremo-gift-popup .cremo-variety-popup__body {
	text-align: center;
}
.cremo-gift-popup .cremo-variety-popup__body h2 {
	margin: 0 0 14px;
}
.cremo-gift-popup .cremo-variety-popup__cta {
	width: 100%;
	font-size: 13px;
}
.cremo-gift-popup .cremo-variety-popup__close {
	background: rgba(20, 10, 5, .55) !important;
	color: #fff !important;
}
.cremo-gift-popup .cremo-variety-popup__close:hover,
.cremo-gift-popup .cremo-variety-popup__close:focus {
	background: rgba(20, 10, 5, .8) !important;
}
@media (min-width: 768px) {
	/* The close button sits over the photo's right edge on desktop: keep it readable on the cream side too. */
	.cremo-gift-popup .cremo-variety-popup__close {
		background: rgba(42, 23, 14, .1) !important;
		color: #2a170e !important;
	}
}
@media (max-width: 767px) {
	.cremo-gift-popup .cremo-variety-popup__card {
		grid-template-rows: clamp(240px, 38dvh, 320px) minmax(0, 1fr);
	}
	.cremo-gift-popup .cremo-gift-popup__offer {
		bottom: 16px;
	}
	.cremo-gift-popup .cremo-gift-popup__offer-kicker {
		font-size: 10px;
	}
	.cremo-gift-popup .cremo-gift-popup__offer-main {
		font-size: 21px;
	}
	.cremo-gift-popup .cremo-gift-popup__offer-date {
		font-size: 14px;
	}
	.cremo-gift-popup .cremo-variety-popup__body h2 {
		margin: 0 0 10px;
	}
}
