/*
 * Black Friday Promotion strip
 * All selectors are namespaced (.bfp-*). Colours come from CSS variables set
 * inline per site: --bfp-primary, --bfp-primary-dark, --bfp-primary-deep,
 * --bfp-accent, --bfp-accent-text, --bfp-offer, --bfp-text.
 * No images, no web fonts of its own (uses the theme's Inter).
 */

.bfp-strip,
.bfp-strip *,
.bfp-strip *::before,
.bfp-strip *::after { box-sizing: border-box; }

.bfp-strip [hidden] { display: none !important; }

/* Private copy of Inter 800/900 (Latin subset, ~11 KB each, SIL OFL). Its own family name means
   it can never change the theme's fonts, and browsers only download it when "Inter" is missing. */
@font-face { font-family: "BFP Inter"; src: url(../fonts/bfp-inter-800.woff2) format("woff2"); font-weight: 100 800; font-style: normal; font-display: swap; }
@font-face { font-family: "BFP Inter"; src: url(../fonts/bfp-inter-900.woff2) format("woff2"); font-weight: 900; font-style: normal; font-display: swap; }

/* Some themes force their own font on every element (e.g. Manchester's "WebFont"). */
.bfp-strip,
.bfp-strip *:not(svg):not(path) {
	font-family: Inter, "BFP Inter", "Helvetica Neue", Arial, sans-serif !important;
}

.bfp-strip {
	--bfp-slant: 30px;
	--bfp-h: 52px;
	position: relative;
	display: block;
	width: 100%;
	margin: 0;
	padding: 4px 0 8px;
	font-family: Inter, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-style: normal;
	line-height: 1;
	letter-spacing: normal;
	text-transform: none;
	text-align: left;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* ---------- band + decorative stripes ---------- */

.bfp-strip__band {
	position: relative;
	display: flex;
	width: 92%;
	max-width: 1420px;
	height: var(--bfp-h);
	margin: 0 auto;
}

.bfp-strip__deco {
	--w: 12px;
	position: absolute;
	top: 0;
	bottom: 0;
	width: calc(var(--w) + var(--bfp-slant));
	background: var(--bfp-accent);
	-webkit-clip-path: polygon(var(--bfp-slant) 0, 100% 0, calc(100% - var(--bfp-slant)) 100%, 0 100%);
	clip-path: polygon(var(--bfp-slant) 0, 100% 0, calc(100% - var(--bfp-slant)) 100%, 0 100%);
}
.bfp-strip__deco--l1 { --w: 9px;  left: 0;    opacity: .55; }
.bfp-strip__deco--l2 { --w: 12px; left: 18px; }
.bfp-strip__deco--r1 { --w: 12px; right: 18px; }
.bfp-strip__deco--r2 { --w: 9px;  right: 0;   opacity: .55; }

/* ---------- main panel ---------- */

.bfp-strip__panel {
	position: relative;
	flex: 1 1 auto;
	min-width: 0;
	height: 100%;
	margin: 0 38px;
	padding: 0 calc(var(--bfp-slant) + 18px);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: clamp(18px, 2.7vw, 52px);
	color: var(--bfp-text);
	background:
		linear-gradient(180deg, rgba(255,255,255,.16) 0, rgba(255,255,255,0) 50%, rgba(0,0,0,.14) 100%),
		radial-gradient(ellipse 34% 140% at 40% 50%, rgba(255,255,255,.13), rgba(255,255,255,0) 70%),
		repeating-linear-gradient(120deg, rgba(255,255,255,.045) 0 2px, rgba(255,255,255,0) 2px 13px),
		linear-gradient(100deg, var(--bfp-primary-deep) 0%, var(--bfp-primary) 30%, var(--bfp-primary) 68%, var(--bfp-primary-dark) 100%);
	-webkit-clip-path: polygon(var(--bfp-slant) 0, 100% 0, calc(100% - var(--bfp-slant)) 100%, 0 100%);
	clip-path: polygon(var(--bfp-slant) 0, 100% 0, calc(100% - var(--bfp-slant)) 100%, 0 100%);
}

/* ---------- headline ---------- */

.bfp-strip__headline {
	display: flex;
	align-items: center;
	gap: clamp(12px, 1.35vw, 24px);
	min-width: 0;
	margin: 0;
	white-space: nowrap;
	overflow: hidden;         /* never run under the coupon pill, whatever font the theme loads */
	padding: 4px 2px 8px;     /* room for text shadow + title underline inside the clip */
}

/* Auto-fit (set by black-friday.js when the theme's font is wider than Inter). */
.bfp-strip.bfp-fit-1 { --bfp-fs: .92; }
.bfp-strip.bfp-fit-2 { --bfp-fs: .85; }
.bfp-strip.bfp-fit-3 { --bfp-fs: .78; }
.bfp-strip.bfp-fit-4 { --bfp-fs: .78; }
.bfp-strip.bfp-fit-4 .bfp-strip__text { display: none; }

.bfp-strip__title {
	position: relative;
	font-size: calc(clamp(19px, 1.78vw, 30px) * var(--bfp-fs, 1));
	font-weight: 900;
	letter-spacing: -.025em;
	color: var(--bfp-text);
	text-shadow: 0 2px 0 rgba(0,0,0,.28), 0 0 18px rgba(0,0,0,.18);
}
.bfp-strip__title::after {
	content: "";
	position: absolute;
	right: -4px;
	bottom: -6px;
	width: 26px;
	height: 4px;
	border-radius: 1px;
	background: var(--bfp-accent);
	transform: skewX(-32deg);
	box-shadow: 0 0 0 1px rgba(255,255,255,.25);
}

.bfp-strip__sep {
	flex: 0 0 auto;
	width: 3px;
	height: 30px;
	border-radius: 2px;
	background: rgba(255,255,255,.6);
	transform: skewX(-16deg);
}

.bfp-strip__offer {
	display: inline-flex;
	align-items: baseline;
	gap: .38em;
}

.bfp-strip__pct {
	font-size: calc(clamp(23px, 2.2vw, 38px) * var(--bfp-fs, 1));
	font-weight: 900;
	font-style: italic;
	letter-spacing: -.03em;
	padding-right: .08em;
	color: var(--bfp-offer);
	text-shadow: 0 2px 0 rgba(0,0,0,.32), 0 0 22px rgba(0,0,0,.2);
}

.bfp-strip__text {
	font-size: calc(clamp(16px, 1.55vw, 27px) * var(--bfp-fs, 1));
	font-weight: 900;
	letter-spacing: -.02em;
	color: var(--bfp-text);
	text-shadow: 0 2px 0 rgba(0,0,0,.25);
}

/* ---------- actions: coupon + CTA ---------- */

.bfp-strip__actions {
	display: flex;
	align-items: center;
	gap: clamp(14px, 2.4vw, 46px);
	flex: 0 0 auto;
}

.bfp-strip .bfp-code,
.bfp-strip .bfp-strip__cta {
	all: unset;
	box-sizing: border-box;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.bfp-strip .bfp-code {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: clamp(8px, .7vw, 12px);
	height: clamp(34px, 2.5vw, 40px);
	padding: 3px 3px 3px clamp(12px, 1.1vw, 18px);
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 2px 0 rgba(0,0,0,.2), 0 6px 16px rgba(0,0,0,.18);
	white-space: nowrap;
	font-family: inherit;
	transition: box-shadow .15s ease;
}
.bfp-strip .bfp-code:hover { box-shadow: 0 2px 0 rgba(0,0,0,.2), 0 8px 20px rgba(0,0,0,.26); }

.bfp-code__label {
	font-size: calc(clamp(12px, 1.02vw, 17px) * var(--bfp-fs, 1));
	font-weight: 800;
	letter-spacing: -.01em;
	color: #141414;
}

.bfp-code__value {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	height: 100%;
	padding: 0 clamp(12px, 1.1vw, 18px);
	border-radius: 999px;
	overflow: hidden;
	background: var(--bfp-accent);
	color: var(--bfp-accent-text);
	font-size: calc(clamp(14px, 1.32vw, 22px) * var(--bfp-fs, 1));
	font-weight: 900;
	letter-spacing: .01em;
	box-shadow: inset 0 0 0 2px rgba(255,255,255,.3), inset 0 -3px 0 rgba(0,0,0,.12);
}

.bfp-code__icon {
	width: .78em;
	height: .78em;
	flex: 0 0 auto;
	fill: currentColor;
	opacity: .8;
}

.bfp-code__done {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: inherit;
	font-size: .82em;
	letter-spacing: .06em;
	opacity: 0;
	transition: opacity .15s ease;
}
.bfp-code.is-copied .bfp-code__done { opacity: 1; }

.bfp-strip .bfp-strip__cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: clamp(34px, 2.5vw, 40px);
	padding: 0 clamp(14px, 1.35vw, 22px) 0 clamp(16px, 1.5vw, 24px);
	border-radius: 999px;
	background: var(--bfp-cta-bg, #fff);
	color: var(--bfp-cta-text, var(--bfp-primary)) !important;
	font-family: inherit;
	font-size: calc(clamp(14px, 1.25vw, 20px) * var(--bfp-fs, 1));
	font-weight: 900;
	letter-spacing: -.01em;
	white-space: nowrap;
	text-decoration: none !important;
	box-shadow: 0 2px 0 rgba(0,0,0,.2), 0 6px 16px rgba(0,0,0,.18);
	transition: transform .15s ease, box-shadow .15s ease;
}
.bfp-strip .bfp-strip__cta:hover,
.bfp-strip .bfp-strip__cta:focus { color: var(--bfp-cta-text, var(--bfp-primary)) !important; text-decoration: none !important; }
.bfp-strip .bfp-strip__cta:hover { transform: translateY(-1px); box-shadow: 0 3px 0 rgba(0,0,0,.2), 0 10px 22px rgba(0,0,0,.26); }
.bfp-strip .bfp-strip__cta svg { width: .95em; height: .95em; flex: 0 0 auto; transition: transform .15s ease; }
.bfp-strip .bfp-strip__cta:hover svg { transform: translateX(2px); }

.bfp-strip .bfp-code:focus-visible,
.bfp-strip .bfp-strip__cta:focus-visible { outline: 3px solid var(--bfp-offer); outline-offset: 2px; }

.bfp-sr {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

/* ---------- desktop size steps ---------- */

@media (max-width: 1365px) {
	.bfp-strip { --bfp-slant: 24px; }
	.bfp-strip__deco--l1, .bfp-strip__deco--r2 { display: none; }
	.bfp-strip__deco--l2 { left: 0; }
	.bfp-strip__deco--r1 { right: 0; }
	.bfp-strip__panel { margin: 0 20px; padding: 0 calc(var(--bfp-slant) + 10px); }
	.bfp-strip__band { width: 95%; }
}
@media (max-width: 1180px) {
	.bfp-strip__title::after { display: none; }
	.bfp-code__label { display: none; }
	.bfp-strip .bfp-code { padding-left: 3px; }
}

/* ---------- which strip shows where ---------- */
/* Desktop strip lives inside the desktop header; mobile strip sits after the mobile header. */

.bfp-strip--mobile { display: none; }

@media (max-width: 999px) {
	.bfp-strip--desktop { display: none; }
	.bfp-strip--mobile  { display: block; }
}

/* ---------- mobile / tablet layout ---------- */

.bfp-strip--mobile {
	--bfp-slant: 0px;
	padding: 0;
}
.bfp-strip--mobile .bfp-strip__band { width: 100%; max-width: none; height: auto; }
.bfp-strip--mobile .bfp-strip__deco { display: none; }
.bfp-strip--mobile .bfp-strip__panel {
	margin: 0;
	min-height: 58px;
	padding: 8px clamp(10px, 3vw, 24px);
	gap: 10px;
	justify-content: space-between;
	-webkit-clip-path: none;
	clip-path: none;
	box-shadow: inset 0 -3px 0 var(--bfp-accent);
}
.bfp-strip--mobile .bfp-strip__headline { gap: 12px; padding: 2px 2px 3px; }
.bfp-strip--mobile .bfp-strip__title { font-size: 20px; }
.bfp-strip--mobile .bfp-strip__title::after { display: none; }
.bfp-strip--mobile .bfp-strip__pct { font-size: 24px; }
.bfp-strip--mobile .bfp-strip__text { font-size: 15px; }
.bfp-strip--mobile .bfp-strip__actions { gap: 10px; }
.bfp-strip--mobile .bfp-code { height: 36px; padding-left: 14px; }
.bfp-strip--mobile .bfp-code__label { display: inline; font-size: 12px; }
.bfp-strip--mobile .bfp-code__value { font-size: 15px; }
.bfp-strip--mobile .bfp-strip__cta { height: 36px; font-size: 15px; padding: 0 12px 0 16px; }

/* small tablets: drop the "USE CODE:" label inside the pill */
@media (min-width: 768px) and (max-width: 899px) {
	.bfp-strip--mobile .bfp-code { padding-left: 3px; }
	.bfp-strip--mobile .bfp-code__label { display: none; }
	.bfp-strip--mobile .bfp-strip__title { font-size: 18px; }
	.bfp-strip--mobile .bfp-strip__pct { font-size: 22px; }
	.bfp-strip--mobile .bfp-strip__text { font-size: 13.5px; }
}

/* phones: two-line headline, compact coupon chip with caption */
@media (max-width: 767px) {
	.bfp-strip--mobile .bfp-strip__panel { gap: 8px; padding: 7px 10px 9px; }
	.bfp-strip--mobile .bfp-strip__headline { flex-direction: column; align-items: flex-start; gap: 2px; }
	.bfp-strip--mobile .bfp-strip__sep { display: none; }
	.bfp-strip--mobile .bfp-strip__title { font-size: 15px; letter-spacing: -.01em; }
	.bfp-strip--mobile .bfp-strip__offer { gap: .3em; }
	.bfp-strip--mobile .bfp-strip__pct { font-size: 20px; }
	.bfp-strip--mobile .bfp-strip__text { font-size: 10.5px; letter-spacing: 0; }
	.bfp-strip--mobile .bfp-strip__actions { gap: 7px; }

	.bfp-strip--mobile .bfp-code {
		flex-direction: column;
		gap: 2px;
		height: auto;
		padding: 0;
		background: transparent;
		box-shadow: none;
	}
	.bfp-strip--mobile .bfp-code__label {
		font-size: 8.5px;
		font-weight: 800;
		letter-spacing: .08em;
		color: var(--bfp-text);
		opacity: .92;
	}
	.bfp-strip--mobile .bfp-code__value {
		height: 28px;
		padding: 0 10px;
		font-size: 13px;
		box-shadow: inset 0 0 0 2px rgba(255,255,255,.55), 0 2px 6px rgba(0,0,0,.25);
	}
	.bfp-strip--mobile .bfp-strip__cta { height: 32px; font-size: 13px; padding: 0 9px 0 12px; gap: 5px; }
}
@media (max-width: 479px) {
	.bfp-strip--mobile .bfp-strip__text { display: none; }
	.bfp-strip--mobile .bfp-strip__headline { min-width: 0; overflow: hidden; } /* clip, never overlap */
}
@media (max-width: 389px) {
	.bfp-strip--mobile .bfp-code__icon { display: none; }
}
@media (max-width: 359px) {
	.bfp-strip--mobile .bfp-strip__panel { padding: 7px 8px 9px; gap: 6px; }
	.bfp-strip--mobile .bfp-strip__title { font-size: 13px; }
	.bfp-strip--mobile .bfp-strip__pct { font-size: 17px; }
	.bfp-strip--mobile .bfp-strip__actions { gap: 5px; }
	.bfp-strip--mobile .bfp-code__value { font-size: 12px; padding: 0 8px; }
	.bfp-strip--mobile .bfp-strip__cta { font-size: 12px; padding: 0 10px; }
	.bfp-strip--mobile .bfp-strip__cta svg { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.bfp-strip * { transition: none !important; }
}

/* ---------- cart / checkout coupon row ---------- */
/* The pekhambanners theme gives every price "margin-right:-37px !important", which makes the
   coupon "[Remove]" link overlap the discount amount. Undo it for coupon rows only. */
tr.cart-discount td span.woocommerce-Price-amount.amount { margin-right: 0 !important; }
tr.cart-discount td .woocommerce-remove-coupon { display: inline-block; margin-left: 8px; white-space: nowrap; font-size: 14px; }

/* ---------- theme compatibility ---------- */
/* pekhambanners (Peckham + 23 sister sites): the desktop header is fixed at 172px.
   Without this the strip pushes the category menu out of the header and over the hero. */
body.bfp-compat-pekhambanners header.main_header.hide-on-mobile,
body.bfp-compat-pekhambanners header.main_header.hide-on-mobile .header_row_blocking {
	height: auto !important;
}
/* manchesterbanners: header.header-main is fixed at 145px on desktop. */
@media (min-width: 1000px) {
	body.bfp-compat-manchesterbanners header.header-main { height: auto !important; }
	body.bfp-compat-manchesterbanners header.header-main .bfp-strip--desktop { padding: 2px 0 10px; }
}
/* Safety net for any theme that gives its header a fixed height (modern browsers). */
header:has(.bfp-strip--desktop),
header:has(.bfp-strip--desktop) > div:has(> .bfp-strip--desktop) {
	height: auto !important;
}
