/* CG Black Friday Look 1.0.3. Everything is scoped to html.cgbf-on, which the script only sets while the sale runs. */

/* ---------- Sale bar: sale name in orange (top bar and in-page countdowns) ---------- */
.cg4-bar__event { color: #F59A4E !important; }

/* ---------- Hide the 10% community tab and pop-up while the sale runs (comes back by itself after) ---------- */
html.cgbf-on #cg-clp, body.cg4-sale-live #cg-clp { display: none !important; }

/* ---------- Photo band (shop cards and product gallery) ---------- */
html.cgbf-on .cgs-card__media { position: relative; }
.cgbf-band {
	position: absolute; left: 0; right: 0; bottom: 0; z-index: 4;
	height: 36px; padding: 0 12px; box-sizing: border-box;
	display: flex; align-items: center; justify-content: space-between; gap: 8px;
	background: #141414; pointer-events: none; font-family: inherit;
}
.cgbf-band__l { color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .12em; white-space: nowrap; }
.cgbf-band__r { color: #F59A4E; font-size: 12px; font-weight: 700; white-space: nowrap; }
html.cgbf-on .cgs-card__dots { bottom: 44px !important; }
.cgbf-band--lg { height: 52px; padding: 0 20px; }
.cgbf-band--lg .cgbf-band__l { font-size: 14px; letter-spacing: .14em; }
.cgbf-band--lg .cgbf-band__r { font-size: 15px; }

/* ---------- Shop card sizes, price chip, shipping note ---------- */
.cgbf-tag {
	display: inline-block; margin-left: 5px; padding: 2px 6px; border-radius: 999px;
	background: #F59A4E; color: #141414; font-size: 11.5px; font-weight: 800; line-height: 1.3;
	vertical-align: middle; white-space: nowrap;
}
.cgbf-tag--best { background: #141414; color: #fff; }
.cgbf-chip {
	display: inline-block; flex-shrink: 0; margin-left: 8px; padding: 5px 11px; border-radius: 8px;
	background: #141414; color: #fff; font-size: 18px; font-weight: 800; line-height: 1.2;
	vertical-align: middle; white-space: nowrap; letter-spacing: -0.01em;
}
.cgbf-chip--deep { color: #F59A4E; }
/* The sale plugin's small "15% OFF" pill repeats the badge (and says 15% on items that are 30% off), so hide it on cards we badge. */
html.cgbf-on .cgs-card[data-cgbf] .cg3-sale-badge-inline { display: none !important; }
.cgbf-save { display: inline-block; margin-left: 8px; color: #A84A12; font-size: 12px; font-weight: 700; white-space: nowrap; vertical-align: middle; }
/* The per-litre pill gets squashed next to the sale price, so hide it on discounted cards while the sale runs. */
html.cgbf-on .cgs-card[data-cgbf] .cgs-card__value { display: none !important; }
.cgbf-ship { display: block; width: 100%; margin-top: 4px; font-size: 12px; color: #4A5A50; }
.cgbf-ship b { color: #1F5340; }

/* ---------- Product page: deal strip ---------- */
.cgbf-strip {
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	margin: 6px 0 14px; padding: 14px 18px; border-radius: 14px;
	background: #141414; color: #fff; font-family: inherit;
}
.cgbf-strip__ev { display: block; font-size: 11px; font-weight: 800; letter-spacing: .16em; color: #F59A4E; }
.cgbf-strip__msg { display: block; font-size: 15px; font-weight: 600; margin-top: 3px; }
.cgbf-strip__right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.cgbf-tiles { display: flex; align-items: baseline; gap: 4px; }
.cgbf-tiles b { background: #fff; color: #141414; font-size: 15px; font-weight: 800; padding: 3px 7px; border-radius: 5px; min-width: 20px; text-align: center; }
.cgbf-tiles i { font-style: normal; font-size: 11px; }
.cgbf-strip__end { font-size: 11px; color: #C9CFCA; }

/* ---------- Product page: price and size cards ---------- */
html.cgbf-on .cg-bb__price.cgbf-p15 [data-cg-price-save] {
	background: #141414 !important; color: #fff !important;
	font-size: 16px !important; font-weight: 800 !important; padding: 5px 11px !important; border-radius: 8px !important;
}
.cgbf-btag { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: #141414; color: #F59A4E; font-weight: 800; font-size: 1.15em; }
html.cgbf-on .cg-bb__card-badge[data-cgbf-orig], html.cgbf-on .cg-bb__card-badge.cgbf-new { font-size: 13px !important; padding: 4px 10px !important; line-height: 1.3 !important; }
html.cgbf-on .cg-bb__card-badge.cgbf-best { background: #141414 !important; color: #fff !important; }
html.cgbf-on .cg-bb__card-badge.cgbf-best .cgbf-btag { padding: 0; margin-left: 4px; background: transparent; }
html.cgbf-on .cg-bb__card-badge.cgbf-new { background: #141414 !important; color: #F59A4E !important; }
.cgbf-cship { display: block; margin-top: 4px; font-size: 11px; font-weight: 700; color: #1F5340; }
.cgbf-cship--more { font-weight: 500; color: #4A5A50; }

/* ---------- Home page sections ---------- */
html.cgbf-on .ht-product[data-cgbf="1"] .ht-product-image { position: relative; overflow: hidden; }
html.cgbf-on .cg-home-product[data-cgbf="1"] .cg-home-product__media { position: relative; }
.cgbf-was { margin-left: 8px; color: #6B776F; font-size: .78em; font-weight: 400; text-decoration: line-through; white-space: nowrap; }
.cgbf-chip--sm { margin-left: 8px; font-size: 14px !important; padding: 3px 8px; border-radius: 6px; font-family: Inter, "Helvetica Neue", Arial, sans-serif !important; font-style: normal !important; font-variant-numeric: lining-nums; }
html.cgbf-on .ht-product[data-cgbf="1"] .ht-product-price { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 0; }
html.cgbf-on .cg-home-product[data-cgbf="1"] .cg-home-product__price-group { display: flex !important; flex-direction: row !important; flex-wrap: wrap; align-items: center; column-gap: 8px; row-gap: 2px; }
html.cgbf-on .cg-home-product[data-cgbf="1"] .cg-home-product__price-prefix { flex-basis: 100%; }
html.cgbf-on .cg-home-product[data-cgbf="1"] .cgbf-was, html.cgbf-on .cg-home-product[data-cgbf="1"] .cgbf-chip--sm { margin-left: 0; }

/* ---------- Offer boxes at the top of shop pages ---------- */
.cgbf-offers { display: grid; grid-template-columns: 1.35fr 1fr; gap: 12px; margin: 0 0 24px; font-family: inherit; }
.cgbf-offer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; border-radius: 16px; background: #fff; border: 1px solid #E2E8DF; }
.cgbf-offer__txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cgbf-offer__k { font-size: 12px; font-weight: 800; letter-spacing: .16em; color: #F59A4E; }
.cgbf-offer__k--g { color: #1F5340; }
.cgbf-offer__t { font-size: 22px; font-weight: 800; color: #1E3329; line-height: 1.15; }
.cgbf-offer__s { font-size: 13px; color: #4A5A50; }
.cgbf-offer--bf { background: #141414; border-color: #141414; }
.cgbf-offer--bf .cgbf-offer__t { color: #fff; font-size: 26px; }
.cgbf-offer--bf .cgbf-offer__s { color: #C9CFCA; }
.cgbf-offer__cd { display: flex; flex-direction: column; align-items: center; gap: 4px; flex-shrink: 0; }
.cgbf-offer__cd .cgbf-tiles b { font-size: 22px; padding: 5px 9px; border-radius: 7px; }
.cgbf-offer__cd .cgbf-tiles i { color: #C9CFCA; font-size: 12px; }
.cgbf-offer__left { font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #9AA39D; }

@media (max-width: 900px) {
	.cgbf-offers { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
	.cgbf-offer { padding: 14px 16px; }
	.cgbf-offer__t { font-size: 18px; }
	.cgbf-offer--bf .cgbf-offer__t { font-size: 21px; }
	.cgbf-offer__cd .cgbf-tiles b { font-size: 16px; padding: 3px 6px; }
	.cgbf-offer__left { display: none; }
	.cgbf-band { height: 28px; padding: 0 8px; }
	.cgbf-band__l { font-size: 9px; letter-spacing: .1em; }
	.cgbf-band__r { font-size: 10px; }
	html.cgbf-on .cgs-card__dots { bottom: 34px !important; }
	.cgbf-band:not(.cgbf-band--lg) .cgbf-pre { display: none; }
	.cgbf-tag--best { display: none; }
	.cgbf-band--lg { height: 42px; padding: 0 14px; }
	.cgbf-band--lg .cgbf-band__l { font-size: 12px; }
	.cgbf-band--lg .cgbf-band__r { font-size: 13px; }
	.cgbf-strip { padding: 12px 14px; gap: 10px; }
	.cgbf-strip__msg { font-size: 14px; }
	.cgbf-tiles b { font-size: 13px; padding: 2px 5px; }
	.cgbf-chip { margin-left: 6px; font-size: 15px; padding: 4px 8px; }
	.cgbf-tag { font-size: 10.5px; padding: 1px 5px; }
	.cgbf-save { margin-left: 6px; font-size: 11px; }
	.cgbf-ship { font-size: 11px; }
}
