/*
 * Black Friday promo (includes/woocommerce/black-friday-site.php and black-friday-landing.php; Mark, 2026-11-13,
 * from the mockups in the LocalWP site folder, mockups/black-friday-landing/). Loaded only while the promo switch is
 * on. Gold is the site's #d8b868 (--home-gold / --bp-gold), Mark: not pink.
 *
 * Every page: the top bar, the menu link, buttons, the footer band, the boot page box and prices, product cards and the
 * homepage hero. The landing page's own styles are black-friday-landing.css, loaded only there (split 2026-11-13 so
 * the hoof boot pillar, where the ads land, carries 15 KB of this instead of 43 KB).
 */
:root {
	--bf-ink: #252525;
	--bf-red: #c8102e;
	--bf-gold: #d8b868;
	--bf-muted: #5a5a5a;
	--bf-line: #ddd4d0;
	--bf-cream: #f6f2f0;
	--bf-green: #1f6b45;
	--bf-green-bg: #e6f2ea;
}

/* ---------------------------------------------------------------- Top bar, every page */
.bf-bar {
	background: var(--bf-ink);
	color: #fff;
	font-family: Montserrat, "Montserrat-fallback", sans-serif;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.35;
}

.bf-bar__in {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 4px 14px;
	max-width: 1240px;
	min-height: 40px;
	margin: 0 auto;
	padding: 8px 16px;
	text-align: center;
}

.bf-bar b {
	color: var(--bf-gold);
	font-size: 12px;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.bf-bar a {
	color: #fff;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.bf-bar__short {
	display: none;
}

/* Phones: one line. The bar is pinned with the header, and the full tiers ran to three lines (a fifth of the screen). */
@media (max-width: 600px) {
	.bf-bar__in {
		flex-wrap: nowrap;
		gap: 10px;
		min-height: 36px;
		padding: 6px 12px;
		white-space: nowrap;
	}

	.bf-bar__long {
		display: none;
	}

	.bf-bar__short {
		display: inline;
	}
}

/* ---------------------------------------------------------------- Menu link */

/* The gold pill after "Black Friday" ("Up to 50%", the start date before the sale), on the same line in the desktop
   menu, the pinned header and the phone drawer (their own link styles would otherwise restyle or wrap it). */
.bf-nav-link > a {
	display: inline-flex !important;
	align-items: center;
	gap: 10px;
	white-space: nowrap;
}

.bf-nav-link .seo-drawer__row > span {
	display: inline-flex !important;
	flex-wrap: nowrap !important;
	align-items: center;
	gap: 12px;
	white-space: nowrap;
}

.bf-nav-link .bf-pill {
	flex: none;
	margin: 0 !important;
	padding: 4px 9px 3px !important;
	border-radius: 999px !important;
	background: var(--bf-gold) !important;
	color: var(--bf-ink) !important;
	font-family: Montserrat, "Montserrat-fallback", sans-serif !important;
	font-size: 11px !important;
	font-weight: 800 !important;
	letter-spacing: .05em !important;
	line-height: 1.25 !important;
	text-transform: uppercase !important;
	white-space: nowrap;
	animation: bf-pill-glow 2.4s ease-out 3;
}

.bf-nav-link .bf-pill[data-bf-show] {
	display: inline-block;
}

.bf-nav-link .seo-drawer__row .bf-pill {
	padding: 5px 10px 4px !important;
	font-size: 12px !important;
}

.bf-nav-link .bf-pill--soon {
	background: var(--bf-ink) !important;
	color: var(--bf-gold) !important;
}

@keyframes bf-pill-glow {
	0% {
		box-shadow: 0 0 0 0 rgba(216, 184, 104, .65);
	}

	70% {
		box-shadow: 0 0 0 9px rgba(216, 184, 104, 0);
	}

	100% {
		box-shadow: 0 0 0 0 rgba(216, 184, 104, 0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.bf-nav-link .bf-pill {
		animation: none;
	}
}

/* Narrow desktop header (2026-11-13 audit): "Black Friday" + its pill is ~240px, which pushed "Find Your Size" off the
   right edge up to ~950px wide (iPads held upright). Up to 979px the link drops its pill; under 760px the link sits out
   (the black bar above the header still carries the sale). seo-nav.css tightens the menu at 641-860px. */
@media (min-width: 641px) and (max-width: 979px) {
	.seo-nav .bf-nav-link .bf-pill {
		display: none !important;
	}
}

@media (min-width: 641px) and (max-width: 759px) {
	.seo-nav .bf-nav-link {
		display: none !important;
	}
}
.bf-nav-link > a,
a.bf-nav-link {
	color: var(--bf-red) !important;
	font-weight: 600;
}

/* ---------------------------------------------------------------- Buttons */
.bf-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 26px;
	border: 0;
	border-radius: 999px;
	background: var(--bf-red);
	color: #fff !important;
	font-family: Montserrat, "Montserrat-fallback", sans-serif;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none !important;
	cursor: pointer;
}

.bf-btn--ink {
	background: var(--bf-ink);
}

.bf-btn--line {
	background: transparent;
	color: var(--bf-ink) !important;
	box-shadow: inset 0 0 0 1.5px var(--bf-ink);
}

/* ---------------------------------------------------------------- The band just above the site footer
   (black-friday-site.php cavallo_bf_strip_html(); Mark, 2026-11-13, in place of the big block above the footer). */
/* Full width black, the content at the page's width (the theme's .wrapper). */
.bf-strip-band {
	background: var(--bf-ink);
}

/* The footer's own top rule would sit right under the band: invisible, keeping its spacing. */
.bf-strip-band + .footer .footer__line--top {
	visibility: hidden;
}

.bf-strip {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 18px;
	padding: 18px 0;
	color: #fff;
	font-family: Montserrat, "Montserrat-fallback", sans-serif;
}

/* A gold label, not a red pill (Mark: it read as a button; "Shop the Sale!" is the only red). */
.bf-strip__pill {
	color: var(--bf-gold);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .14em;
	text-transform: uppercase;
	white-space: nowrap;
}

.bf-strip__h {
	margin: 0;
	color: #fff;
	font-family: "Playfair Display", Georgia, serif;
	font-size: 24px;
	font-weight: 500;
	line-height: 1.2;
}

.bf-strip__h em {
	color: var(--bf-gold);
	font-style: normal;
}

.bf-strip__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.bf-strip__chips span {
	padding: 5px 11px;
	border-radius: 999px;
	background: #3a3a3a;
	font-size: 12.5px;
	font-weight: 700;
	white-space: nowrap;
}

.bf-strip__chips b {
	color: var(--bf-gold);
}

.bf-strip .bf-strip__btn {
	margin-left: auto;
	padding: 11px 22px;
	font-size: 14px;
	white-space: nowrap;
}

@media (max-width: 860px) {
	.bf-strip {
		justify-content: center;
		padding: 22px 0;
		text-align: center;
	}

	.bf-strip__h {
		width: 100%;
		font-size: 22px;
	}

	.bf-strip__chips {
		justify-content: center;
	}

	.bf-strip .bf-strip__btn {
		width: 100%;
		margin-left: 0;
	}
}

/* ---------------------------------------------------------------- Boot page: Black Friday box and price */
.bf-price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 2px 12px;
	margin: 6px 0 2px;
}

.bf-price del {
	color: #6b635e; /* 4.5:1 or better on white and the cream boxes (was #8a8a8a, 3.1:1) */
	font-family: "Playfair Display", Georgia, serif;
	font-size: 22px;
}

.bf-price ins {
	color: var(--bf-red);
	font-family: "Playfair Display", Georgia, serif;
	font-size: 36px;
	line-height: 1.1;
	text-decoration: none;
}

/* Until the price plugin says which currency this visitor gets, the first one printed holds the space (nothing jumps
   when the answer comes) without showing a price that may be the wrong currency. */
html:not([data-bf-currency]) [data-bf-cur] {
	visibility: hidden;
}

/* One currency's block ([data-bf-cur]) lays out as the row itself; its hidden siblings stay hidden. */
.bf-price > [data-bf-cur]:not([hidden]) {
	display: contents;
}

.bf-price [data-bf-cur] > span {
	color: var(--bf-muted);
	font-size: 14px;
}

.bf-price .amount {
	color: inherit;
	font: inherit;
}

/* One price per tier; black-friday.js shows the one the quantity reaches (the flex display would beat [hidden]). */
.bf-buy-price [data-bf-at][hidden] {
	display: none;
}

.bf-price.bf-pop ins {
	animation: bf-price-pop .45s ease-out;
}

@keyframes bf-price-pop {
	0% {
		transform: scale(1.12);
		color: var(--bf-gold);
	}

	100% {
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bf-price.bf-pop ins {
		animation: none;
	}
}

.bf-price-note {
	margin: 0 0 12px;
	color: var(--bf-muted);
	font-size: 13px;
}

/* The boot page's buy panel zeroes its children's margins (body.bp-v2 .bp-buy ...): match it so the box keeps its
   space under the "US customer?" line. */
body.bp-v2 .bp-buy .bf-box,
.bf-box {
	margin: 16px 0 18px;
	padding: 14px 16px 16px;
	border-radius: 14px;
	background: var(--bf-ink);
	color: #fff;
	font-family: Montserrat, "Montserrat-fallback", sans-serif;
}

.bf-box__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 4px 10px;
	margin: 0 0 10px;
	font-size: 12.5px;
	color: #ccc;
}

.bf-box__head b {
	color: var(--bf-gold);
	font-size: 12px;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.bf-tiers {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
}

.bf-tier {
	width: 100%;
	padding: 8px 10px;
	border: 0;
	border-radius: 10px;
	background: #363636;
	color: #fff;
	font: inherit;
	text-align: center;
	cursor: pointer;
	transition: background .2s, box-shadow .2s, transform .15s;
}

.bf-tier:hover {
	background: #444;
	box-shadow: 0 0 0 1px rgba(216, 184, 104, .6);
}

.bf-tier:active {
	transform: scale(.97);
}

.bf-tier:focus-visible {
	outline: 2px solid var(--bf-gold);
	outline-offset: 2px;
}

.bf-tier small {
	display: block;
	color: #ccc;
	font-size: 11.5px;
}

.bf-tier strong {
	display: block;
	font-size: 19px;
	line-height: 1.2;
}

.bf-tier em {
	display: block;
	color: #eee;
	font-size: 12.5px;
	font-style: normal;
}

.bf-tier.is-on,
.bf-tier.is-on:hover {
	background: #fff;
	color: var(--bf-ink);
	box-shadow: 0 0 0 2px var(--bf-gold);
}

.bf-tier.is-on small,
.bf-tier.is-on em {
	color: var(--bf-muted);
}

.bf-tier.is-on strong {
	color: var(--bf-red);
}

.bf-box__note {
	margin: 10px 0 0;
	color: #ccc;
	font-size: 12.5px;
}

.bf-box__note a {
	color: #fff;
	font-weight: 700;
}

.bf-box__qty {
	margin: 10px 0 0;
	color: #fff;
	font-size: 13px;
	font-weight: 600;
}

.bf-box__qty em {
	color: var(--bf-gold);
	font-style: normal;
}

/* Same space under the "US customer?" line as the sale box above (Mark, 2026-11-16: the preview notice touched it). */
body.bp-v2 .bp-buy .bf-teaser,
.bf-teaser {
	margin: 16px 0 18px;
	padding: 14px 16px;
	border-radius: 14px;
	background: var(--bf-ink);
	color: #fff;
	font-size: 14px;
}

.bf-teaser b {
	display: block;
	margin-bottom: 2px;
	color: var(--bf-gold);
	font-size: 12px;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.bf-badge {
	position: absolute;
	top: 16px;
	right: 64px;
	z-index: 3;
	padding: 8px 14px;
	border-radius: 14px;
	background: var(--bf-red);
	color: #fff;
	font-family: Montserrat, "Montserrat-fallback", sans-serif;
	font-weight: 800;
	line-height: 1.1;
	text-align: center;
	pointer-events: none;
}

.bf-badge small {
	display: block;
	font-size: 10.5px;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.bf-badge b {
	font-size: 20px;
}

@media (max-width: 520px) {
	.bf-tiers {
		gap: 6px;
	}

	.bf-tier {
		padding: 8px 4px;
	}

	.bf-tier strong {
		font-size: 17px;
	}

	.bf-tier em,
	.bf-tier small {
		font-size: 11px;
	}

	/* Phones keep the gallery's zoom button at the top right: sit just left of it, a size smaller. */
	.bf-badge {
		top: 12px;
		right: 56px;
		padding: 6px 10px;
		border-radius: 12px;
	}

	.bf-badge small {
		font-size: 9px;
	}

	.bf-badge b {
		font-size: 16px;
	}
}

/* ---------------------------------------------------------------- Boot page: the regular price gives way to the sale price */
html.bf-live .bf-buy-price ~ .price {
	display: none !important;
}

/* ---------------------------------------------------------------- Boot page: above the "other boots" band */
/* Boot pages: "Booting more than one horse?", in the boot page's own section frame (bp-sec / bp-w) so it has its
   width and spacing, with four other boots (other equines first) and their lowest Black Friday price. */
.bf-more__head {
	max-width: 760px;
	margin: 0 0 28px;
}

.bf-more .bp-w .bf-more__sub {
	margin: 10px 0 0;
	color: var(--bf-muted);
	font-size: 17px;
	line-height: 1.55;
}

.bf-more__boots {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 18px;
}

.bf-more__boot {
	display: flex;
	flex-direction: column;
	padding: 0 0 18px;
	overflow: hidden;
	border: 1px solid var(--bf-line);
	border-radius: 18px;
	background: #fff;
	color: var(--bf-ink);
	text-decoration: none;
	transition: box-shadow .2s ease, transform .2s ease;
}

.bf-more__boot:hover {
	box-shadow: 0 12px 30px rgba(37, 37, 37, .1);
	transform: translateY(-2px);
}

.bf-more__img {
	display: block;
	aspect-ratio: 1 / 1;
	padding: 14px;
}

.bf-more__img img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.bf-more__for,
.bf-more__name,
.bf-more__low {
	padding: 0 18px;
}

.bf-more__for {
	color: var(--bf-red);
	font-size: 11.5px;
	font-weight: 800;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.bf-more__name {
	margin: 4px 0 6px;
	font-family: "Playfair Display", Georgia, serif;
	font-size: 20px;
	line-height: 1.2;
}

.bf-more__low {
	margin-top: auto;
	color: var(--bf-muted);
	font-size: 15px;
}

.bf-more__low .amount {
	color: var(--bf-red);
	font-weight: 800;
}

/* The boot page's sections zero their paragraphs' margins (.bp-w p): keep the button's space above it. */
.bf-more .bp-w .bf-more__cta {
	margin: 36px 0 0;
	text-align: center;
}

@media (max-width: 900px) {
	.bf-more__boots {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}

	.bf-more__name {
		font-size: 17px;
	}
}

/* Product cards everywhere (shop, hoof boot hub, related, featured): a Black Friday badge on a boot's photo and its
   sale price in place of the regular one (black-friday-site.php cavallo_bf_card_parts(); Mark, 2026-11-13). */
.bf-cardbadge {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 3;
	display: grid;
	padding: 6px 10px 7px;
	border-radius: 10px;
	background: var(--bf-ink);
	color: #fff;
	line-height: 1.2;
	text-align: left;
	box-shadow: 0 6px 16px rgba(37, 37, 37, .22);
	pointer-events: none;
}

.bf-cardbadge b {
	color: var(--bf-gold);
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.bf-cardbadge span {
	font-size: 13px;
	font-weight: 800;
}

html.bf-live .product-card--bf .product-card__price,
html.bf-live .product-card--bf .product-card__unit {
	display: none;
}

.bf-cardprice__row > [data-bf-cur]:not([hidden]) {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0 8px;
}

.bf-cardprice__row ins {
	color: var(--bf-red);
	font-size: 19px;
	font-weight: 800;
	text-decoration: none;
}

.bf-cardprice__row del {
	color: #6b635e; /* 4.5:1 or better on white and the cream boxes (was #8a8a8a, 3.1:1) */
	font-size: 13px;
}

.bf-cardprice__per {
	margin-top: 2px;
	color: var(--bf-muted);
	font-size: 12px;
}

/* Phones: the cards lie sideways with a small photo, so the badge is a one-line tag (the red price says the rest). */
@media (max-width: 767px) {
	.bf-cardbadge {
		top: 6px;
		left: 6px;
		padding: 3px 7px;
		border-radius: 6px;
		white-space: nowrap;
	}

	.bf-cardbadge b {
		font-size: 9px;
	}

	.bf-cardbadge span {
		display: none;
	}
}

/* ---------------------------------------------------------------- Homepage hero during the sale
   (black-friday-site.php cavallo_bf_hero_text()): the hero's own heading and copy, then a Black Friday line, and
   "Shop the Sale!" first with the hero's own button beside it. */
.hero .hero__content .hero__bf-line {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	color: #fff;
	font-size: 17px;
	font-weight: 600;
	text-shadow: 0 1px 12px rgba(0, 0, 0, .55);
}

.hero .hero__content .hero__bf-line:not(:last-child) {
	margin-bottom: 1.25rem;
}

.hero__bf-line a {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	color: #fff !important;
	text-decoration: none !important;
}

/* A gold label like the hero's own "Veterinarian Recommended" line, not a red pill (Mark: it read as a button). */
.hero__bf-pill {
	color: var(--bf-gold);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .14em;
	text-transform: uppercase;
	white-space: nowrap;
}

.hero__bf-pill::after {
	content: "·";
	margin-left: 12px;
	color: rgba(255, 255, 255, .7);
}

.hero .hero__content .hero__bf-btns {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

/* The hero's own button, outlined in white on the video. */
.hero__bf-btns .c-button--white-bordered {
	border: 2px solid #fff;
	background: transparent;
	color: #fff !important;
}

.hero__bf-btns .c-button--white-bordered:hover,
.hero__bf-btns .c-button--white-bordered:focus-visible {
	background: #fff;
	color: var(--bf-ink) !important;
}

.hero .hero__content .hero__bf--center {
	justify-content: center;
	text-align: center;
}

@media (max-width: 767px) {
	.hero .hero__content .hero__bf-line {
		font-size: 15px;
	}
}

/* The top bar's discounts in bold (Mark, 2026-11-13). */
.bf-bar strong {
	font-weight: 800;
}

