/*
 * Black Friday 2026 (27.11 – 30.11). Loaded only while inc/black-friday.php
 * reports the promo as active; markup with these classes exists only then.
 */

/* ---------- Shared badge ---------- */

.esty-bf-badge[class] {
	display: inline-flex;
	align-items: center;
	padding: 2px 8px;
	border-radius: 4px;
	background: #ddd6cf;
	color: #22181b;
	font-family: 'Inter', sans-serif;
	font-size: 16px;
	font-weight: 600;
	line-height: normal;
	white-space: nowrap;
	text-decoration: none;
	text-transform: none;
	letter-spacing: 0;
	pointer-events: none;
}

/* ---------- Home hero ---------- */

.esty-bf-hero {
	background: #161013;
}

.esty-bf-hero__media {
	position: absolute;
	inset: 0;
	display: block;
}

.esty-bf-hero .esty-bf-hero__bg {
	cursor: default;
	object-position: 50% 50%;
}

.esty-bf-hero::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background:
		linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0) 46.063%),
		linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2));
}

.esty-bf-hero__content {
	position: absolute;
	left: 50%;
	bottom: 80px;
	z-index: 3;
	width: min(100% - 48px, 1240px);
	transform: translateX(-50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 28px;
	text-align: center;
	font-family: 'Unbounded', sans-serif;
	text-transform: uppercase;
}

.esty-bf-hero__kicker {
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0 20px;
	color: #f6f2ee;
	font-size: 20px;
	font-weight: 400;
	line-height: 1.24;
	letter-spacing: 0.8px;
}

.esty-bf-hero__title {
	max-width: 1040px;
	margin: 0;
	color: #f3f2ee;
	font-family: 'Unbounded', sans-serif;
	font-size: 54px;
	font-weight: 500;
	line-height: 1.1;
	text-transform: uppercase;
}

.esty-bf-hero__offer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 12px 16px;
	color: #f6f2ee;
	text-decoration: none;
}

.esty-bf-hero__badge {
	padding: 10px 20px;
	border-radius: 8px;
	background: #710606;
	color: #fff;
	font-size: 32px;
	font-weight: 600;
	line-height: 1.24;
	white-space: nowrap;
	transition: background-color 0.25s ease;
}

.esty-bf-hero__offer:hover .esty-bf-hero__badge,
.esty-bf-hero__offer:focus-visible .esty-bf-hero__badge {
	background: #8a0b0b;
}

.esty-bf-hero__note {
	font-size: 22px;
	font-weight: 400;
	line-height: 1.24;
}

@media (max-width: 1199px) {
	.esty-bf-hero__content {
		bottom: 64px;
		gap: 24px;
	}

	.esty-bf-hero__kicker {
		font-size: 18px;
	}

	.esty-bf-hero__title {
		font-size: clamp(36px, 5vw, 48px);
	}

	.esty-bf-hero__badge {
		font-size: 28px;
	}

	.esty-bf-hero__note {
		font-size: 20px;
	}
}

@media (max-width: 767px) {
	.esty-bf-hero .esty-bf-hero__bg {
		object-position: 50% 30%;
	}

	.esty-bf-hero::after {
		background:
			linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0) 30%),
			linear-gradient(0deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0) 55%),
			linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2));
	}

	.esty-bf-hero__content {
		bottom: 40px;
		width: calc(100% - 32px);
		gap: 18px;
	}

	.esty-bf-hero__kicker {
		flex-direction: column;
		align-items: center;
		gap: 4px;
		font-size: 13px;
		letter-spacing: 0.5px;
	}

	.esty-bf-hero__dot {
		display: none;
	}

	.esty-bf-hero__title {
		font-size: 28px;
	}

	.esty-bf-hero__offer {
		flex-direction: column;
		gap: 10px;
	}

	.esty-bf-hero__badge {
		padding: 8px 16px;
		font-size: 24px;
	}

	.esty-bf-hero__note {
		font-size: 14px;
	}
}

@media (max-width: 479px) {
	.esty-bf-hero__content {
		bottom: 32px;
		width: calc(100% - 24px);
	}

	.esty-bf-hero__title {
		font-size: 25px;
	}
}

/* ---------- /education/ cards ---------- */

.education-page__program-card .esty-bf-card__cta {
	margin-top: auto;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 20px;
}

.education-page__program-card .esty-bf-card__cta .btn {
	margin-top: 0;
}

.esty-bf-card__price {
	display: flex;
	flex-direction: column;
	gap: 2px;
	font-family: 'Inter', sans-serif;
	line-height: normal;
	white-space: nowrap;
}

.esty-bf-card__new {
	color: #ddd6cf;
	font-size: 20px;
	font-weight: 600;
}

.esty-bf-card__old {
	color: rgba(221, 214, 207, 0.5);
	font-size: 14px;
	font-weight: 500;
	text-decoration: line-through;
}

.esty-bf-card .education-page__program-media {
	position: relative;
}

.esty-bf-badge.esty-bf-badge--card {
	position: absolute;
	right: 24px;
	bottom: 24px;
	z-index: 1;
	padding: 4px 10px;
	font-size: 18px;
}

.education-page__track .esty-bf-badge.esty-bf-badge--card {
	right: 12px;
	bottom: 16px;
}

@media (max-width: 767px) {
	.esty-bf-badge.esty-bf-badge--card,
	.education-page__track .esty-bf-badge.esty-bf-badge--card {
		right: 12px;
		bottom: 12px;
		font-size: 16px;
	}
}

/* ---------- Course landing: first-screen buy button ---------- */

a.btn.esty-bf-btn {
	width: auto;
	max-width: none;
	gap: 12px;
	overflow: visible;
	white-space: nowrap;
}

a.btn.esty-bf-btn::before {
	display: none;
}

.esty-bf-btn__prices {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.esty-bf-btn__old {
	opacity: 0.5;
	font-weight: 500;
	text-decoration: line-through;
}

.esty-bf-btn__new {
	font-weight: 600;
}

.esty-bf-badge.esty-bf-badge--btn {
	position: absolute;
	top: -14px;
	right: -10px;
	z-index: 2;
}

@media (max-width: 479px) {
	a.btn.esty-bf-btn {
		height: auto;
		min-height: 45px;
		padding-top: 10px;
		padding-bottom: 10px;
		flex-wrap: wrap;
		gap: 4px 10px;
		white-space: normal;
		text-align: center;
	}

	.esty-bf-btn__prices {
		white-space: nowrap;
	}
}

/* ---------- Course landing: pricing block ---------- */

.esty-bf-price {
	display: inline-flex !important;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 14px;
	white-space: nowrap;
}

.esty-bf-price__old {
	font-size: 0.6em;
	font-weight: 500;
	opacity: 0.5;
	text-decoration: line-through;
}

.esty-bf-badge.esty-bf-badge--price {
	align-self: center;
}

/* ProAge 2024 (course-proage-longevity) positions its prices absolutely in a 219px box. */
.proage-longevity-pricing__price {
	width: auto !important;
	height: auto !important;
	display: inline-flex !important;
	align-items: center;
}

.proage-longevity-pricing__price-current.esty-bf-price {
	position: static;
	flex-wrap: nowrap;
}
