/* Black Friday email sign-up popup. Same palette and type as the homepage banner (home.css). */
.bf-pop {
	--bf-lime: #9ccb3b;
	--bf-ink: #10150e;
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	font-family: Manrope, sans-serif;
	line-height: 1.4;
}

.bf-pop[hidden] {
	display: none;
}

.bf-pop .bf-pop__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(6, 9, 5, 0.62);
	backdrop-filter: blur(3px);
	animation: bf-pop-fade 0.25s ease-out;
}

.bf-pop .bf-pop__card {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 42%);
	width: 100%;
	max-width: 780px;
	overflow: hidden;
	border-radius: 18px;
	background: radial-gradient(ellipse 60% 80% at 85% 100%, rgba(120, 160, 50, 0.22), rgba(16, 21, 14, 0) 70%), var(--bf-ink);
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
	color: #fff;
	animation: bf-pop-in 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

.bf-pop .bf-pop__card:focus {
	outline: none;
}

.bf-pop .bf-pop__body {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: 40px 0 34px 40px;
}

.bf-pop .bf-pop__ends {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.bf-pop .bf-pop__ends::after {
	content: "";
	width: 40px;
	height: 2px;
	border-radius: 2px;
	background: #acce67;
}

.bf-pop .bf-pop__title {
	margin: 10px 0 0;
	font-family: Montserrat, sans-serif;
	font-size: 54px;
	font-weight: 900;
	font-style: italic;
	letter-spacing: -0.05em;
	line-height: 1;
	white-space: nowrap;
	color: #fff;
}

.bf-pop .bf-pop__tag {
	margin-top: 6px;
	font-family: Montserrat, sans-serif;
	font-size: 22px;
	font-weight: 700;
	font-style: italic;
	color: var(--bf-lime);
}

.bf-pop .bf-pop__text {
	margin: 14px 0 0;
	max-width: 34ch;
	font-size: 15px;
	color: #c9d3bd;
}

.bf-pop .bf-pop__form {
	display: flex;
	gap: 8px;
	width: 100%;
	margin: 20px 0 0;
}

.bf-pop .bf-pop__form input[type="email"] {
	flex: 1;
	min-width: 0;
	height: 50px;
	padding: 0 20px;
	border: 2px solid transparent;
	border-radius: 999px;
	background: #fff;
	color: var(--bf-ink);
	font: inherit;
	font-size: 16px; /* 16px stops iOS zooming into the field */
	box-shadow: none;
}

.bf-pop .bf-pop__form input[type="email"]:focus {
	border-color: var(--bf-lime);
	outline: none;
}

.bf-pop .bf-pop__form input[aria-invalid="true"] {
	border-color: #ff6b5e;
}

.bf-pop .bf-pop__submit {
	flex: none;
	height: 50px;
	padding: 0 24px;
	border: 0;
	border-radius: 999px;
	background: linear-gradient(180deg, #b5e43e 0%, #8dbb2e 100%);
	color: var(--bf-ink);
	font: inherit;
	font-size: 15px;
	font-weight: 800;
	letter-spacing: 0;
	text-transform: none;
	line-height: 1;
	box-shadow: none;
	cursor: pointer;
	transition: filter 0.15s;
}

.bf-pop .bf-pop__submit:hover {
	filter: brightness(1.06);
}

.bf-pop .bf-pop__submit[disabled] {
	opacity: 0.7;
	cursor: wait;
}

.bf-pop .bf-pop__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.bf-pop .bf-pop__msg {
	min-height: 0;
	margin: 8px 0 0 20px;
	font-size: 13px;
	color: #ff8a7e;
}

.bf-pop .bf-pop__msg:empty {
	display: none;
}

.bf-pop .bf-pop__legal {
	margin: 12px 0 0;
	max-width: 46ch;
	font-size: 11.5px;
	color: #8e9a80;
}

.bf-pop .bf-countdown {
	margin-top: 22px;
	font-size: 14px;
}

.bf-pop .bf-pop__done {
	display: none;
	margin-top: 22px;
}

.bf-pop .bf-pop__done-title {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: Montserrat, sans-serif;
	font-size: 22px;
	font-weight: 800;
	font-style: italic;
	color: var(--bf-lime);
}

.bf-pop .bf-pop__done-title::before {
	content: "✓";
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--bf-lime);
	color: var(--bf-ink);
	font-style: normal;
	font-size: 17px;
}

.bf-pop .bf-pop__done p {
	margin: 8px 0 0;
	font-size: 15px;
	color: #c9d3bd;
}

.bf-pop .bf-pop__cta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 18px;
	padding: 14px 26px;
	border-radius: 999px;
	background: #fff;
	color: var(--bf-ink);
	font-weight: 700;
	text-decoration: none;
}

.bf-pop.is-done .bf-pop__form,
.bf-pop.is-done .bf-pop__msg,
.bf-pop.is-done .bf-pop__legal,
.bf-pop.is-done .bf-pop__text {
	display: none;
}

.bf-pop.is-done .bf-pop__done {
	display: block;
}

.bf-pop .bf-pop__media {
	position: relative;
	display: flex;
	align-items: flex-end;
}

.bf-pop .bf-pop__img {
	display: block;
	width: 122%;
	max-width: none;
	height: auto;
	margin: 0 0 34px -22%;
	-webkit-mask-image: linear-gradient(to right, transparent 0%, #000 22%);
	mask-image: linear-gradient(to right, transparent 0%, #000 22%);
}

.bf-pop .bf-pop__close {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	font-size: 22px;
	line-height: 1;
	min-height: 0;
	box-shadow: none;
	cursor: pointer;
}

.bf-pop .bf-pop__close:hover {
	background: rgba(255, 255, 255, 0.22);
}

@keyframes bf-pop-fade {
	from { opacity: 0; }
}

@keyframes bf-pop-in {
	from { opacity: 0; transform: translateY(16px) scale(0.97); }
}

@media (prefers-reduced-motion: reduce) {
	.bf-pop .bf-pop__backdrop,
	.bf-pop .bf-pop__card {
		animation: none;
	}
}

/* Phone: picture on top, form stacked */
@media (max-width: 640px) {
	.bf-pop {
		align-items: flex-end;
		padding: 0;
	}

	.bf-pop .bf-pop__card {
		grid-template-columns: minmax(0, 1fr);
		max-height: 92dvh;
		overflow-y: auto;
		border-radius: 20px 20px 0 0;
		animation-name: bf-pop-up;
	}

	.bf-pop .bf-pop__media {
		grid-row: 1;
		justify-content: center;
		height: 150px;
		overflow: hidden;
	}

	.bf-pop .bf-pop__img {
		width: 100%;
		height: 100%;
		margin: 0;
		object-fit: cover;
		object-position: center 40%;
		-webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
		mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
	}

	.bf-pop .bf-pop__body {
		grid-row: 2;
		padding: 0 20px calc(24px + env(safe-area-inset-bottom));
	}

	.bf-pop .bf-pop__ends {
		font-size: 11px;
	}

	.bf-pop .bf-pop__title {
		font-size: clamp(34px, 11vw, 44px);
	}

	.bf-pop .bf-pop__tag {
		font-size: 19px;
	}

	.bf-pop .bf-pop__text {
		font-size: 14px;
	}

	.bf-pop .bf-pop__form {
		flex-direction: column;
	}

	.bf-pop .bf-pop__form input[type="email"] {
		flex: none;
	}

	.bf-pop .bf-pop__submit {
		width: 100%;
	}

	.bf-pop .bf-pop__msg {
		margin-left: 4px;
	}

	.bf-pop .bf-countdown {
		margin-top: 18px;
		font-size: 12px;
	}

	.bf-pop .bf-pop__close {
		top: 10px;
		right: 10px;
		background: rgba(16, 21, 14, 0.55);
	}

	@keyframes bf-pop-up {
		from { transform: translateY(100%); }
	}
}
