/* nw-bf2026: the Black Friday strip, banners and messages. Loaded only while the sale is on for the visitor. */

/* The strip: from the live nw-sfc-banner styling (Arial, 960 px column), both lines white, line 1 bold (10 Nov call:
   brighter and larger). Desktop 19/16 px. On phones the type grows with the screen, as large as still keeps each line on
   one line next to the menu button (bf.js clears line 1 of it) and the 30 Nov countdown on one line (measured 320 to
   680 px on the live home page, 11 Nov). */
.nwbf-strip{background:#000;color:#fff;font-family:Arial,Helvetica,sans-serif;position:relative;z-index:1}
.nwbf-strip__in{max-width:960px;margin:0 auto;padding:14px 0;box-sizing:border-box;text-align:center}
@media (max-width:1008px){.nwbf-strip__in{padding:14px 24px}}
.nwbf-strip__copy{margin:0;padding:0;font-size:19px;line-height:1.35;color:#fff;text-align:center;font-weight:400;letter-spacing:0;text-transform:none}
/* :visited: the theme's app.css sets a,a:visited{color:#7b2441} (0,1,1), which beat the class alone once the page was visited. */
.nwbf-strip__l1,.nwbf-strip__l1:visited{display:block;color:#fff;font-weight:700;text-decoration:none;box-sizing:border-box}
.nwbf-strip__l1:hover,.nwbf-strip__l1:focus{color:#fff;text-decoration:underline}
.nwbf-strip__l2{display:block;margin-top:4px;font-size:16px;color:#fff}
@media (max-width:680px){.nwbf-strip__in{padding:12px 16px}.nwbf-strip__copy{font-size:clamp(12px,calc(4.6vw - 2px),19px)}.nwbf-strip__l2{font-size:clamp(12px,calc(4.1vw - .5px),16px)}}

/* At 23:59:59 PST on 30 Nov bf.js adds nwbf-ended to <html>, so cached pages drop the sale too. */
.nwbf-ended .nwbf{display:none !important}

/* Banners: 960 px wide at most, scaled down on smaller screens. */
.nwbf-banner{max-width:960px;margin:0 auto 20px}
.nwbf-banner a,.nwbf-banner picture{display:block}
.nwbf-banner img{display:block;width:100%;height:auto;max-width:100%;border:0;margin:0}
@media (max-width:767px){.nwbf-banner--slim{display:none}}

/* Cart, checkout and product messages. */
.nwbf-cart-msg{margin:0 0 16px;padding:12px 16px;border:1px solid #40021c;background:#fff;color:#222}
.nwbf-cart-msg p{margin:0;padding:0}
.nwbf-cart-msg p+p{margin-top:6px}
.nwbf-checkout{margin:0 0 12px;font-weight:700}
.nwbf-note{margin:0 0 12px;font-weight:700;color:#40021c}
.nwbf-add3{margin:12px 0}

/* The sale page, inside the theme's 960 px column: the banner, three perks, Chris's six tiles (the jump links), deal
   cards for the five supplements ([nwbf_deals]), the apparel grid and "Good to know". The theme's own burgundy
   buttons, Montserrat headings and Arial text; Chris's pink only on the offer labels. */
/* Spacing: three values, the same everywhere, so every block has equal space above and below it.
   --nwbf-block between blocks (banner, perks, tiles, each heading, each grid, "Good to know"), as one flex gap;
   --nwbf-grid between items in a grid, across and down (tiles, deal cards, apparel); --nwbf-pad inside a card or box. */
.nwbf-page{--nwbf-wine:#7b2441;--nwbf-pink:#d0105a;--nwbf-ink:#3c3c3c;--nwbf-head:#4d4d4d;--nwbf-muted:#6e6e6e;--nwbf-line:#e7e1e3;--nwbf-tint:#faf5f7;--nwbf-block:48px;--nwbf-grid:32px;--nwbf-pad:24px;display:flex;flex-direction:column;gap:var(--nwbf-block);padding:var(--nwbf-block) 0;color:var(--nwbf-ink)}
/* The theme adds its own space above and below the content: 20 px under the menu bar, plus 30 px of header padding up
   to 992 px wide (style.css #header.newHeader), and 20 px under the article. Taken back here, so the banner and
   "Good to know" get the same gap as every other block. */
.nwbf-page{margin-top:-20px}
article:has(>.nwbf-page){margin-bottom:0}
@media (max-width:992px){.nwbf-page{margin-top:-50px}}
@media (max-width:767px){.nwbf-page{--nwbf-block:32px;--nwbf-grid:24px;--nwbf-pad:20px}}
.nwbf-page>p:empty,.nwbf-page>br{display:none}
.nwbf-page .nwbf-banner{width:100%;margin:0 auto} /* width: a flex item with auto margins would shrink to its image */
.nwbf-perks{display:flex;justify-content:center;margin:0;padding:0;list-style:none;font-size:14px;line-height:1.4}
.nwbf-perks li{margin:0;padding:2px 16px;border-left:1px solid var(--nwbf-line);white-space:nowrap}
.nwbf-perks li:first-child{border-left:0}
.nwbf-perks strong{color:var(--nwbf-wine)}
@media (max-width:959px){.nwbf-perks{flex-direction:column;align-items:center}.nwbf-perks li{border:0;padding:3px 0;white-space:normal}}

.nwbf-tiles{display:grid;grid-template-columns:1fr 1fr;gap:var(--nwbf-grid);width:100%;max-width:960px;margin:0 auto}
.nwbf-tiles a{display:block;border:1px solid #d9d9d9}
.nwbf-tiles img{display:block;width:100%;height:auto;margin:0}
@media (max-width:767px){.nwbf-tiles{grid-template-columns:1fr}}

.nwbf-head{margin:0;text-align:center;scroll-margin-top:var(--nwbf-block)}
.nwbf-head h2{margin:0;padding:0;font-size:28px;line-height:1.2;color:var(--nwbf-head)}
.nwbf-head p{max-width:560px;margin:12px auto 0;padding:0;font-size:16px;line-height:1.5;color:var(--nwbf-muted)}

/* Deal cards: two across for Buy 2, Get 1 Free, three across for the others, one per row on phones. */
.nwbf-deals{display:grid;gap:var(--nwbf-grid)}
.nwbf-deals--2{grid-template-columns:repeat(2,minmax(0,1fr))}
.nwbf-deals--3{grid-template-columns:repeat(3,minmax(0,1fr))}
.nwbf-deals--1{width:100%;max-width:calc((960px - var(--nwbf-grid)) / 2);margin:0 auto}
@media (max-width:767px){.nwbf-deals--2,.nwbf-deals--3{grid-template-columns:minmax(0,1fr)}}
/* padding:0: the cards are <article>s, and the theme's responsive.css gives every article 0 8px under 880 px. */
.nwbf-card{display:flex;flex-direction:column;padding:0;background:#fff;border:1px solid var(--nwbf-line);border-radius:8px;overflow:hidden;text-align:center;scroll-margin-top:var(--nwbf-block)}
.nwbf-card__head{display:flex;flex:1;flex-direction:column;align-items:center;padding:var(--nwbf-pad)}
.nwbf-card__media{display:block;width:240px;max-width:100%}
.nwbf-card__media img{display:block;width:100%;height:auto;margin:0}
.nwbf-card__body{padding-top:16px}
.nwbf-card__offer{display:inline-block;margin:0 0 8px;padding:3px 12px;border-radius:999px;background:var(--nwbf-pink);color:#fff;font:700 13px/1.4 Arial,Helvetica,sans-serif}
.nwbf-card__name{margin:0;padding:0;font-size:18px;line-height:1.25;color:var(--nwbf-head)}
.nwbf-card__name a,.nwbf-card__name a:visited{color:inherit;text-decoration:none}
.nwbf-card__name a:hover,.nwbf-card__name a:focus{text-decoration:underline}
.nwbf-card__meta{margin:4px 0 0;padding:0;font-size:14px;color:var(--nwbf-muted)}
.nwbf-card__options{margin:0;padding:0;list-style:none;border-top:1px solid var(--nwbf-line)}
.nwbf-card__option{display:flex;flex-direction:column;align-items:center;gap:16px;margin:0;padding:var(--nwbf-pad)}
.nwbf-card__option+.nwbf-card__option{border-top:1px solid var(--nwbf-line)}
.nwbf-card__option--best{background:var(--nwbf-tint)}
.nwbf-card__price{font-size:14px;line-height:1.3;color:var(--nwbf-muted)}
.nwbf-card__now{margin-right:6px;font:700 24px/1.1 Montserrat,"Helvetica Neue",Helvetica,Arial,sans-serif;color:#222}
.nwbf-card__each{display:block;margin-top:3px;font-weight:700;color:var(--nwbf-wine)}
.nwbf-card a.nwbf-card__btn{display:block;box-sizing:border-box;width:100%;margin:0;padding:10px 16px;line-height:20px;text-align:center}
.nwbf-card a.nwbf-card__btn--alt{background:#fff;color:var(--nwbf-wine)}
.nwbf-card a.nwbf-card__btn--alt:hover,.nwbf-card a.nwbf-card__btn--alt:focus{background:var(--nwbf-wine);color:#fff}
.nwbf-card a.nwbf-card__btn:focus-visible{outline:3px solid var(--nwbf-pink);outline-offset:2px}
/* WooCommerce's add-to-cart script: "loading" while it adds, then a "View cart" link after the button. */
.nwbf-card a.nwbf-card__btn.loading{opacity:.6;pointer-events:none}
.nwbf-card a.added_to_cart{display:block;margin:0;font-weight:700;color:var(--nwbf-wine);text-align:center}
.nwbf-card__soldout{margin:0;padding:var(--nwbf-pad);border-top:1px solid var(--nwbf-line);font-weight:700;color:var(--nwbf-muted)}

/* Buy 2, Get 1 Free cards: the photo beside the name, then one row per choice (quantity, price, button). The tub fills
   only the middle of its square photo, so the photo box is tall (2:3) with the white sides cropped, and it runs to the
   card's top and bottom edges: the photo's own white margin does the padding there (white on the white card). The
   card's side padding stays on both sides. */
.nwbf-card--buy3{text-align:left}
.nwbf-card--buy3 .nwbf-card__head{flex-direction:row;gap:var(--nwbf-pad);padding:0 var(--nwbf-pad)}
.nwbf-card--buy3 .nwbf-card__media{flex:0 0 min(240px,50%);width:min(240px,50%);aspect-ratio:2/3;overflow:hidden}
.nwbf-card--buy3 .nwbf-card__media img{height:100%;object-fit:cover}
.nwbf-card--buy3 .nwbf-card__body{padding:var(--nwbf-pad) 0} /* only shows if the text grows taller than the photo */
.nwbf-card--buy3 .nwbf-card__name{font-size:20px}
.nwbf-card--buy3 .nwbf-card__option{display:grid;grid-template-columns:56px minmax(0,1fr) auto;align-items:center}
.nwbf-card--buy3 .nwbf-card__qty{font-weight:700;color:var(--nwbf-head)}
.nwbf-card--buy3 .nwbf-card__now{font-size:22px}
.nwbf-card--buy3 a.nwbf-card__btn{width:auto;white-space:nowrap}
.nwbf-card--buy3 .nwbf-card__option a.added_to_cart{grid-column:1/-1;text-align:right}
@media (max-width:479px){
	.nwbf-card--buy3 .nwbf-card__media{flex-basis:140px;width:140px}
	.nwbf-card--buy3 .nwbf-card__option{grid-template-columns:minmax(0,1fr) auto;gap:8px 16px}
	.nwbf-card--buy3 .nwbf-card__qty{grid-column:1/-1}
}

/* The apparel grid: the theme's style.css sets cards to 30% and WooCommerce's small screens to 48%. On this page: 3
   across (10 Nov call: bigger images), 2 on phones. [class*=columns-] outranks both rules whatever the load order. */
.nwbf-page .woocommerce ul.products[class*=columns-]{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--nwbf-grid);margin:0;padding:0}
.nwbf-page .woocommerce ul.products[class*=columns-]::before,.nwbf-page .woocommerce ul.products[class*=columns-]::after{display:none}
.nwbf-page .woocommerce ul.products[class*=columns-] li.product{display:flex;flex-direction:column;align-items:center;float:none;clear:none;width:auto;margin:0}
.nwbf-page .woocommerce ul.products[class*=columns-] li.product>.button{margin-top:auto}
@media (max-width:767px){.nwbf-page .woocommerce ul.products[class*=columns-]{grid-template-columns:repeat(2,minmax(0,1fr))}}

.nwbf-notes{box-sizing:border-box;width:100%;max-width:640px;margin:0 auto;padding:var(--nwbf-pad);border:1px solid var(--nwbf-line);border-radius:8px;background:var(--nwbf-tint);text-align:left}
.nwbf-notes h2{margin:0 0 12px;padding:0;font-size:20px;color:var(--nwbf-head)}
.nwbf-notes ul{margin:0;padding:0 0 0 20px}
.nwbf-notes li{margin:8px 0;line-height:1.5}

/* The added-to-cart notice (notice.js, sale page only; Allan, point 2). Literal colours: the --nwbf-* variables live on
   .nwbf-page, and the notice sits on <body>. Off: visibility:hidden (after the slide-out), so its links can't be tabbed
   to or tapped and it never covers a deal-card button or a link; pointer-events:none besides. On: it takes no focus. */
.nwbf-notice{position:fixed;left:50%;bottom:24px;z-index:100000;display:flex;align-items:center;gap:16px;box-sizing:border-box;width:max-content;max-width:calc(100% - 32px);padding:14px 18px;border-radius:6px;background:#7b2441;color:#fff;box-shadow:0 6px 24px rgba(0,0,0,.25);opacity:0;visibility:hidden;transform:translate(-50%,150%);transition:transform .25s,opacity .25s,visibility 0s .25s;pointer-events:none}
.nwbf-notice.is-on{opacity:1;visibility:visible;transform:translate(-50%,0);transition:transform .25s,opacity .25s,visibility 0s;pointer-events:auto}
.nwbf-notice .nwbf-notice__text{margin:0;padding:0;font-weight:700;line-height:1.3;color:#fff}
.nwbf-notice a.nwbf-notice__btn,.nwbf-notice a.nwbf-notice__btn:visited{flex:0 0 auto;margin:0;white-space:nowrap;background:#fff;color:#7b2441}
.nwbf-notice a.nwbf-notice__btn:hover,.nwbf-notice a.nwbf-notice__btn:focus{background:#f3e6ea;color:#7b2441}
.nwbf-notice button.nwbf-notice__close,.nwbf-notice button.nwbf-notice__close:hover,.nwbf-notice button.nwbf-notice__close:focus{flex:0 0 auto;min-width:44px;min-height:44px;margin:-10px -12px -10px -6px;padding:0 4px;border:0;border-radius:0;background:none;box-shadow:none;color:#fff;font-size:24px;line-height:1;cursor:pointer}
.nwbf-notice a.nwbf-notice__btn:focus-visible,.nwbf-notice button.nwbf-notice__close:focus-visible{outline:2px solid #fff;outline-offset:2px}
@media (prefers-reduced-motion:reduce){.nwbf-notice,.nwbf-notice.is-on{transition:none}}
/* Phones: a full-width bar on the bottom edge (no centring transform) that clears the iPhone home indicator. */
@media (max-width:767px){
	.nwbf-notice{left:0;right:0;bottom:0;width:100%;max-width:none;gap:12px;padding:14px 16px calc(14px + env(safe-area-inset-bottom,0px));border-radius:0;transform:translateY(110%);box-shadow:0 -4px 16px rgba(0,0,0,.25)}
	.nwbf-notice.is-on{transform:translateY(0)}
	.nwbf-notice .nwbf-notice__text{flex:1 1 auto;min-width:0;font-size:16px}
	.nwbf-notice a.nwbf-notice__btn{padding:10px 14px}
}
/* The deal-card button itself says it worked. #42: the tick is a small badge in the button's right padding, position:absolute, so it takes
   no room. As text after the label it widened the buttons that do not wrap (Buy 2 cards: nowrap, width:auto), "$43.33 each" wrapped at 768 px
   and everything below moved 18 px. The badge (13 px wide, 3 px from the edge) fits the label's 16 px side padding, so it never covers the label,
   and it sits inside the button, so the card's overflow:hidden does not clip it. */
.nwbf-card a.nwbf-card__btn.added{position:relative}
.nwbf-card a.nwbf-card__btn.added::after{content:"\2713";position:absolute;top:0;right:3px;bottom:0;width:13px;display:flex;align-items:center;justify-content:flex-end;font-size:13px;line-height:1;font-weight:700}
/* The notice carries View cart, so WooCommerce's inline link goes, on the whole page: this also stops the card-height jump. #42: !important,
   because WooCommerce's .woocommerce a.added_to_cart{display:inline-block} (0,2,1, loaded after this file) tied with this rule (0,2,1) and won
   in the apparel grid (div.woocommerce), so the link stayed and the button jumped 30 px. */
.nwbf-page a.added_to_cart{display:none!important}
/* The theme's fixed TOP button covers add buttons, View cart and Place order on phones and tablets. The theme's jQuery
   writes style="display:inline" on it, so this needs !important. */
@media (max-width:1143px){.page-id-622109 a.ttop,body.woocommerce-cart a.ttop,body.woocommerce-checkout a.ttop{display:none!important}}

/* #25 product pages keep the theme's hidden struck price; only the empty line the <br> leaves above the price goes */
body.woocommerce #wrap div.product .summary .price del+br{display:none}
/* #26 sale page apparel prices: dark sale price, grey struck price, no underline */
.nwbf-page .woocommerce ul.products li.product .price, .nwbf-page .woocommerce ul.products li.product .price ins{color:#222;text-decoration:none}
.nwbf-page .woocommerce ul.products li.product .price del{color:#6e6e6e;opacity:1}
/* #69 cart price column: same colours as #26 */
.woocommerce table.cart td.product-price ins{text-decoration:none;font-weight:700;color:#222}
.woocommerce table.cart td.product-price del{color:#6e6e6e}
/* #69 the cart's "You may be interested in" cards: the sale price as in the cart table */
.woocommerce .cross-sells ul.products li.product .price ins{text-decoration:none;font-weight:700;color:#222}
.woocommerce .cross-sells ul.products li.product .price del{color:#6e6e6e;opacity:1}
/* #27 visible keyboard focus on the apparel buttons and the cart's PAY WITH CREDIT CARD (literal colour: --nwbf-pink exists only on .nwbf-page) */
.woocommerce a.button:focus-visible{outline:3px solid #d0105a;outline-offset:2px}
/* #28 home slider pager: five thumbnails on one row while the Black Friday slide is there; the second set is the no-:has() fallback */
#advcustompager:has(>a:nth-child(5))>a{width:19.2%}
#advcustompager:has(>a:nth-child(5))>a:nth-child(4){margin-right:1%}
#advcustompager:has(>a:nth-child(5))>a:nth-child(5){margin-right:0}
#advcustompager a:first-child:nth-last-child(5),#advcustompager a:first-child:nth-last-child(5)~a{width:19.2%;margin-right:1%}
#advcustompager a:first-child:nth-last-child(5)~a:last-child{margin-right:0}
/* #49 "Buy 2, Get 1 Free" pill on one line at 320 to 348 px (a narrower photo) */
@media (max-width:359px){.nwbf-card--buy3 .nwbf-card__media{flex-basis:100px;width:100px}}
/* #50 apparel buttons on two lines at the most on phones; the side padding only, type and height stay */
@media (max-width:399px){.nwbf-page .woocommerce ul.products li.product a.button{padding-left:6px;padding-right:6px}}
/* #52 Buy 2, Get 1 Free cards stacked at 312 px and below (after the 479 px block and after #49); flex:0 0 auto keeps the 140 px basis from becoming the photo's height */
@media (max-width:312px){.nwbf-card--buy3 .nwbf-card__head{flex-direction:column;align-items:center;text-align:center;padding:var(--nwbf-pad) var(--nwbf-pad) 0}.nwbf-card--buy3 .nwbf-card__media{flex:0 0 auto;width:140px;aspect-ratio:auto}.nwbf-card--buy3 .nwbf-card__option{grid-template-columns:minmax(0,1fr)}.nwbf-card--buy3 a.nwbf-card__btn{width:100%}}
/* #58 stock texts on product pages: darker green (4.93:1) */
.woocommerce div.product p.stock{color:#557a46}
/* #66 menu at 880 to 987 px with the sale item: tighter padding up to 959 px, and the last drop-down opens leftwards (both rules together) */
@media (min-width:880px) and (max-width:959px){#branding .main_nav ul.main_menu:has(>li.nwbf-menu-item)>li>a{padding-left:15px;padding-right:15px}}
@media (min-width:880px){#branding .main_nav ul.main_menu:has(>li.nwbf-menu-item)>li:last-child>ul.sub-menu{left:auto;right:0}}

/* #21: on checkout and the Elementor challenge pages the kit's link rule (0,1,1) beats the line 1 rule near the top
   (0,1,0), and line 1 turned pale green, thin and smaller. These (0,2,1), :visited (0,3,1), come later as well, so
   line 1 stays white bold in the strip's own font on every page. */
.nwbf-strip a.nwbf-strip__l1,.nwbf-strip a.nwbf-strip__l1:visited{color:#fff;font:inherit;font-weight:700}
.nwbf-strip a.nwbf-strip__l1:hover,.nwbf-strip a.nwbf-strip__l1:focus{color:#fff;text-decoration:underline}
/* #22: at 992 px and narrower the theme pins its login link and search box to the top of the page, and bf.js only
   moves them below the strip once it runs. These offsets clear them from the first paint (verify-15's tested rules):
   the strip's height with one line per strip line (its padding above and below, the 4 px gap, 1.35 x each line's
   size), plus the admin bar (46 px, 32 px from 783 px). bf.js fit() owns the final offset: when the strip is taller
   it sets the margin to the strip's bottom (not added to this one). Dropped at the end, with the strip. */
@media (max-width:680px){html:not(.nwbf-ended) .loginMenuNav,html:not(.nwbf-ended) .header-search{margin-top:calc(28px + 1.35*clamp(12px,calc(4.6vw - 2px),19px) + 1.35*clamp(12px,calc(4.1vw - .5px),16px))} html:not(.nwbf-ended) body.admin-bar .loginMenuNav,html:not(.nwbf-ended) body.admin-bar .header-search{margin-top:calc(46px + 28px + 1.35*clamp(12px,calc(4.6vw - 2px),19px) + 1.35*clamp(12px,calc(4.1vw - .5px),16px))}}
@media (min-width:681px) and (max-width:992px){html:not(.nwbf-ended) .loginMenuNav,html:not(.nwbf-ended) .header-search{margin-top:79.25px} html:not(.nwbf-ended) body.admin-bar .loginMenuNav,html:not(.nwbf-ended) body.admin-bar .header-search{margin-top:125.25px}}
@media (min-width:783px) and (max-width:992px){html:not(.nwbf-ended) body.admin-bar .loginMenuNav,html:not(.nwbf-ended) body.admin-bar .header-search{margin-top:111.25px}}
