/* =====================================================================
   BPS legal + WooCommerce utility pages (Part 5)
   Pages: Privacy Policy (3), Cart (517), Checkout (518), My Account (519),
   Refund/Return Policy (520).
   Every rule is scoped to body.page-id-{3,517,518,519,520} AND :has(#bps-hdr),
   so it does nothing on any other page, and nothing on these pages until the
   "BPS Legal Header" Hooks layout is output there (logged-in preview first).
   Fonts come from Part 1 (@font-face) of the existing Additional CSS.
   Yellow is NOT used here: Woo buttons are sage (primary) or ink outline.
   ===================================================================== */
body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr){
--ink:#0f1110;--paper:#f4f1ea;--paper-2:#e9e4d9;--line-l:rgba(15,17,16,.14);--line-m:rgba(15,17,16,.22);
--sage:#3c5547;--sage-2:#506b5c;--sage-3:#8fa597;--muted-l:#5d625f;--accent-2:#806920;
--display:"Bebas Neue",Impact,"Arial Narrow",sans-serif;--body:Inter,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;--mono:"JetBrains Mono",ui-monospace,Menlo,Consolas,monospace;
background:var(--paper)}

/* ---------- frame: clear the fixed 76px BPS header, paper page ---------- */
body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #page{background:var(--paper);padding-top:76px}
body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content.site-content{background:var(--paper);color:var(--ink);font-family:var(--body);padding:0;margin:0}
body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content > .ast-container{display:block;max-width:1280px;margin:0 auto;padding:0 clamp(20px,4vw,48px) clamp(72px,8vw,112px)}
body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content #primary{width:100%;max-width:none;margin:0 !important;padding:0;float:none;border:0}
body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content .site-main{margin:0;padding:0}
body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content article.ast-article-single,
body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr).ast-separate-container #content article.ast-article-single{background:none !important;padding:0 !important;margin:0 !important;border:0;box-shadow:none}

/* ---------- page title band (Astra's own H1, restyled, not hidden) ---------- */
body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content .entry-header{position:relative;margin:0 0 clamp(36px,4.5vw,64px) !important;padding:clamp(44px,5.5vw,80px) 0 clamp(30px,3.5vw,48px);text-align:left;
background:var(--paper-2);
/* full-bleed band without widening the page (border-image outset is paint-only, no scrollbar) */
border-image:linear-gradient(#e9e4d9,#e9e4d9) fill 0 / 0 / 0 100vmax}
body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content .entry-header::before{display:block;margin:0 0 16px;font-family:var(--mono);font-size:12px;font-weight:500;letter-spacing:.14em;text-transform:uppercase;color:var(--sage);content:"// Policies"}
body.page-id-517:has(#bps-hdr) #content .entry-header::before,
body.page-id-518:has(#bps-hdr) #content .entry-header::before{content:"// Online orders"}
body.page-id-519:has(#bps-hdr) #content .entry-header::before{content:"// Customer account"}
body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content .entry-header .entry-title{margin:0 !important;padding:0;font-family:var(--display) !important;font-weight:400 !important;font-size:clamp(56px,8vw,112px) !important;line-height:.9 !important;letter-spacing:.005em !important;text-transform:uppercase;color:var(--ink) !important}

/* cart/checkout: the existing stock note layout (5837, astra_header_after) sits between header and title.
   Make it the top of the title band instead of a floating box. */
body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #page > [class^="astra-advanced-hook-"]:has(> .bps-stock-note){background:var(--paper-2);padding:20px clamp(20px,4vw,48px) 0 !important}
body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #page > [class^="astra-advanced-hook-"] > .bps-stock-note{max-width:1184px;margin:0 auto !important;background:var(--paper);font-size:14px}
body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr):has(#page > [class^="astra-advanced-hook-"] > .bps-stock-note) #content .entry-header{padding-top:clamp(28px,3.5vw,48px)}

/* ---------- legal reading column (Refund 520, Privacy 3) ---------- */
body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content .entry-content{color:var(--ink);font-family:var(--body)}
body:is(.page-id-3,.page-id-520):has(#bps-hdr) #content .entry-content{max-width:760px;font-size:17px;line-height:1.65;overflow-wrap:break-word}
body:is(.page-id-3,.page-id-520):has(#bps-hdr) #content .entry-content :is(p,li){font-family:var(--body);font-size:17px;line-height:1.65;color:rgba(15,17,16,.86);overflow-wrap:anywhere}
body:is(.page-id-3,.page-id-520):has(#bps-hdr) #content .entry-content p{margin:0 0 1.1em}
body:is(.page-id-3,.page-id-520):has(#bps-hdr) #content .entry-content p:empty{display:none}
body:is(.page-id-3,.page-id-520):has(#bps-hdr) #content .entry-content :is(h2,h3,h4){font-family:var(--display) !important;font-weight:400 !important;text-transform:uppercase;letter-spacing:.01em;line-height:1 !important;color:var(--ink) !important;margin:clamp(40px,4vw,56px) 0 14px;padding:0}
body:is(.page-id-3,.page-id-520):has(#bps-hdr) #content .entry-content h2{font-size:clamp(30px,2.8vw,40px) !important}
body:is(.page-id-3,.page-id-520):has(#bps-hdr) #content .entry-content :is(h3,h4){font-size:clamp(24px,2.2vw,30px) !important}
body:is(.page-id-3,.page-id-520):has(#bps-hdr) #content .entry-content :is(h2,h3,h4) strong{font-weight:400}
body:is(.page-id-3,.page-id-520):has(#bps-hdr) #content .entry-content :is(h2,h3,h4):first-child,
body:is(.page-id-3,.page-id-520):has(#bps-hdr) #content .entry-content p:empty:first-child + :is(h2,h3,h4),
body:is(.page-id-3,.page-id-520):has(#bps-hdr) #content .fl-rich-text > :is(h2,h3,h4):first-child{margin-top:0}
body:is(.page-id-3,.page-id-520):has(#bps-hdr) #content .entry-content ul{list-style:none;margin:0 0 1.4em;padding:0}
body:is(.page-id-3,.page-id-520):has(#bps-hdr) #content .entry-content ul li{position:relative;margin:0 0 .55em;padding:0 0 0 24px}
body:is(.page-id-3,.page-id-520):has(#bps-hdr) #content .entry-content ul li::before{content:"";position:absolute;left:2px;top:.62em;width:7px;height:7px;background:var(--sage)}
body:is(.page-id-3,.page-id-520):has(#bps-hdr) #content .entry-content ol{margin:0 0 1.4em 1.3em;padding:0}
body:is(.page-id-3,.page-id-520):has(#bps-hdr) #content .entry-content ol li{margin:0 0 .55em;padding-left:4px}
body:is(.page-id-3,.page-id-520):has(#bps-hdr) #content .entry-content ol li::marker{font-family:var(--mono);font-size:.85em;color:var(--sage)}
body:is(.page-id-3,.page-id-520):has(#bps-hdr) #content .entry-content strong{font-weight:600;color:var(--ink)}
body:is(.page-id-3,.page-id-520):has(#bps-hdr) #content .entry-content a{color:var(--sage);text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px;overflow-wrap:anywhere}
body:is(.page-id-3,.page-id-520):has(#bps-hdr) #content .entry-content a:hover{color:var(--ink)}
/* privacy page is a Beaver Builder layout: neutralise BB row/column spacing so the text sits in the same column */
body.page-id-3:has(#bps-hdr) #content .fl-builder-content :is(.fl-row-content-wrap,.fl-col-content){padding:0 !important;margin:0 !important;background:none !important;border:0 !important}
body.page-id-3:has(#bps-hdr) #content .fl-builder-content :is(.fl-row-content,.fl-row-fixed-width){max-width:none !important;margin:0 !important;padding:0 !important}
body.page-id-3:has(#bps-hdr) #content .fl-builder-content .fl-module-content{margin:0 !important}
body.page-id-3:has(#bps-hdr) #content .fl-builder-content .fl-col{width:100% !important;float:none}

/* ---------- WooCommerce shared: base text ---------- */
body:is(.page-id-517,.page-id-518,.page-id-519):has(#bps-hdr) #content .woocommerce{font-family:var(--body);font-size:16px;line-height:1.55;color:var(--ink)}
body:is(.page-id-517,.page-id-518,.page-id-519):has(#bps-hdr) #content .woocommerce :is(h2,h3){font-family:var(--display) !important;font-weight:400 !important;font-size:clamp(30px,2.8vw,40px) !important;line-height:1 !important;text-transform:uppercase;letter-spacing:.01em;color:var(--ink) !important;margin:0 0 18px;padding:0;border:0}
body:is(.page-id-517,.page-id-518,.page-id-519):has(#bps-hdr) #content .woocommerce a:not(.button):not(.remove){color:var(--sage);text-decoration:underline;text-underline-offset:3px}
body:is(.page-id-517,.page-id-518,.page-id-519):has(#bps-hdr) #content .woocommerce a:not(.button):not(.remove):hover{color:var(--ink)}

/* ---------- buttons: ink outline (secondary), sage solid (primary). No yellow. ---------- */
body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content .woocommerce :is(a.button,button.button,input.button,button[type="submit"]:not(.remove)),
body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content .woocommerce-page :is(a.button,button.button){display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:48px;margin:0;padding:14px 22px !important;
border:1.5px solid var(--ink) !important;border-radius:0 !important;background:transparent !important;color:var(--ink) !important;box-shadow:none !important;
font-family:var(--mono) !important;font-size:12px !important;font-weight:500 !important;letter-spacing:.12em !important;line-height:1.2 !important;text-transform:uppercase;text-decoration:none !important;cursor:pointer;transition:background .2s,color .2s,border-color .2s}
body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content .woocommerce :is(a.button,button.button,input.button,button[type="submit"]:not(.remove)):hover{background:var(--ink) !important;color:var(--paper) !important}
body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content .woocommerce :is(.button.alt,a.checkout-button,#place_order,.woocommerce-form-login__submit,.woocommerce-form-register__submit,.woocommerce-Button[name="save_account_details"],.woocommerce-Button[name="save_address"],.woocommerce-ResetPassword .button){background:var(--sage) !important;border-color:var(--sage) !important;color:var(--paper) !important}
body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content .woocommerce :is(.button.alt,a.checkout-button,#place_order,.woocommerce-form-login__submit,.woocommerce-form-register__submit,.woocommerce-Button[name="save_account_details"],.woocommerce-Button[name="save_address"],.woocommerce-ResetPassword .button):hover{background:var(--ink) !important;border-color:var(--ink) !important;color:var(--paper) !important}
body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content .woocommerce :is(.button,button):is(:disabled,[disabled],.disabled){opacity:.4 !important;cursor:not-allowed;background:transparent !important;color:var(--ink) !important}
body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content .woocommerce :is(.button,button,input,select,textarea,a):focus-visible{outline:2px solid var(--sage) !important;outline-offset:2px}
body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content .woocommerce a.button.wc-backward::before{content:"\2190";font-family:var(--body)}
body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content .woocommerce a.checkout-button::after{content:"\2192";font-family:var(--body)}

/* ---------- notices ---------- */
body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content :is(.woocommerce-message,.woocommerce-info,.woocommerce-error,.woocommerce-notice){position:relative;display:block;margin:0 0 24px !important;padding:16px 20px !important;list-style:none;
background:#fff !important;border:1px solid var(--line-l) !important;border-left:4px solid var(--sage) !important;border-radius:0 !important;box-shadow:none !important;color:var(--ink) !important;font-family:var(--body);font-size:15px;line-height:1.55}
body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content :is(.woocommerce-message,.woocommerce-info,.woocommerce-error,.woocommerce-notice)::before{display:none !important;content:none !important}
body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content .woocommerce-error{border-left-color:#9b3b2a !important}
body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content .woocommerce-error li{margin:0;padding:0}
body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content :is(.woocommerce-message,.woocommerce-info) .button{float:right;min-height:0;margin:-6px 0 -6px 16px;padding:9px 14px !important}
body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content .cart-empty.woocommerce-info{font-size:17px;padding:22px 24px !important}
body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content .return-to-shop{margin:0}
body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content .woocommerce-notices-wrapper:empty{display:none}

/* ---------- inputs ---------- */
body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content .woocommerce :is(input.input-text,input[type="text"],input[type="email"],input[type="tel"],input[type="password"],input[type="number"],select,textarea),
body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content .woocommerce .select2-container .select2-selection--single{width:100%;min-height:48px;margin:0;padding:11px 14px;background:#fff !important;border:1px solid var(--line-m) !important;border-radius:0 !important;box-shadow:none !important;
color:var(--ink) !important;font-family:var(--body) !important;font-size:16px !important;line-height:1.4}
body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content .woocommerce textarea{min-height:110px}
body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content .woocommerce :is(input.input-text,input[type="text"],input[type="email"],input[type="tel"],input[type="password"],input[type="number"],select,textarea):focus{border-color:var(--sage) !important;outline:2px solid rgba(60,85,71,.28) !important;outline-offset:0}
body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content .woocommerce .select2-container .select2-selection--single{display:flex;align-items:center;height:48px;padding:0 14px}
body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content .woocommerce .select2-container .select2-selection__rendered{padding:0 !important;line-height:1.4 !important;color:var(--ink) !important}
body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content .woocommerce .select2-container .select2-selection__arrow{height:46px !important;right:8px !important}
body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content .woocommerce form .form-row{margin:0 0 18px;padding:0}
body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content .woocommerce form .form-row label,
body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content .woocommerce form label{display:block;margin:0 0 7px;font-family:var(--body);font-size:14px;font-weight:500;line-height:1.4;color:var(--ink)}
body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content .woocommerce form .form-row label.checkbox,
body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content .woocommerce form label.woocommerce-form__label-for-checkbox{display:inline-flex;align-items:center;gap:10px;font-weight:400}
body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content .woocommerce form .form-row .required{color:var(--sage);text-decoration:none;border:0}
body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content .woocommerce form .form-row .optional{color:var(--muted-l);font-weight:400}
body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content .woocommerce input[type="checkbox"]{width:18px;height:18px;margin:0;accent-color:var(--sage)}
body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content .woocommerce input[type="radio"]{accent-color:var(--sage)}
body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content .woocommerce form .form-row.woocommerce-invalid :is(input.input-text,select){border-color:#9b3b2a !important}

/* ---------- tables (cart, cart totals, order review, account orders) ---------- */
body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content .woocommerce table.shop_table{width:100%;margin:0 0 28px;border:1px solid var(--line-l) !important;border-collapse:collapse !important;border-radius:0 !important;background:#fff;font-family:var(--body);font-size:15px}
body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content .woocommerce table.shop_table :is(th,td){padding:16px 18px !important;border:0 !important;border-top:1px solid var(--line-l) !important;vertical-align:middle;text-align:left;background:none;color:var(--ink);line-height:1.45}
body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content .woocommerce table.shop_table thead th{border-top:0 !important;background:var(--paper-2);font-family:var(--mono);font-size:11px;font-weight:500;letter-spacing:.14em;text-transform:uppercase;color:var(--sage)}
body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content .woocommerce table.shop_table :is(.amount,bdi){font-family:var(--mono);font-weight:500;color:var(--ink)}
body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content .woocommerce table.shop_table tfoot th,
body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content .woocommerce .cart_totals table.shop_table th{font-family:var(--mono);font-size:11px;font-weight:500;letter-spacing:.14em;text-transform:uppercase;color:var(--muted-l)}
body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content .woocommerce table.shop_table .order-total :is(.amount,bdi){font-size:18px}
body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content .woocommerce table.shop_table small{font-size:12px;color:var(--muted-l)}

/* ---------- cart (517) ---------- */
body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content table.cart .product-thumbnail{width:112px}
body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content table.cart .product-thumbnail img{display:block;width:84px !important;height:84px;max-width:none;object-fit:contain;background:#fff;border:1px solid var(--line-l);padding:6px;border-radius:0}
body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content table.cart .product-name a{font-weight:600;color:var(--ink) !important;text-decoration:none !important}
body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content table.cart .product-name a:hover{color:var(--sage) !important}
body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content table.cart .product-name dl.variation{margin:8px 0 0;font-family:var(--mono);font-size:12px;letter-spacing:.02em;color:var(--muted-l)}
body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content table.cart .product-name dl.variation :is(dt,dd,p){display:inline;margin:0;padding:0;font-family:var(--mono);font-size:12px;font-weight:400;color:var(--muted-l)}
body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content table.cart .product-name dl.variation dd::after{content:"";display:block}
body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content table.cart .product-name dl.variation dd{margin-left:.45em}
body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content table.cart .product-remove{width:52px;text-align:center}
body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content table.cart a.remove{display:inline-flex !important;align-items:center;justify-content:center;width:30px !important;height:30px !important;border:1px solid var(--line-m) !important;border-radius:0 !important;background:transparent !important;color:var(--ink) !important;font-size:18px !important;line-height:1 !important;text-decoration:none}
body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content table.cart a.remove:hover{background:var(--ink) !important;border-color:var(--ink) !important;color:var(--paper) !important}
body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content table.cart .quantity .qty{width:84px !important;min-height:44px;padding:8px 10px;text-align:center;font-family:var(--mono) !important}
body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content table.cart td.actions{padding:18px !important;background:var(--paper-2)}
body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content table.cart td.actions .coupon{display:inline-flex;gap:10px;align-items:center;float:left}
body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content table.cart td.actions .coupon .input-text{width:200px !important;min-height:48px;margin:0 !important}
body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content table.cart td.actions > .button{float:right}
body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content .cart-collaterals{display:flex;justify-content:flex-end;gap:32px;flex-wrap:wrap;margin-top:8px}
body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content .cart-collaterals .cart_totals{float:none !important;width:min(460px,100%) !important;margin:0 0 0 auto;padding:clamp(22px,2.5vw,32px);background:var(--paper-2);border:1px solid var(--line-l)}
body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content .cart-collaterals::before,body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content .cart-collaterals::after{display:none !important;content:none !important}
body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content .cart-collaterals .cart_totals > h2{background:none !important;border:0 !important;padding:0 !important;margin:0 0 18px !important}
body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content .cart-collaterals .cart_totals table.shop_table td{text-align:right !important}
body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content .cart-collaterals .cart_totals ul#shipping_method li,
body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content .cart-collaterals .cart_totals .woocommerce-shipping-destination{text-align:right;font-size:14px;margin:0}
body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content .cart-collaterals .cart_totals table.shop_table{margin:0 0 20px}
body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content .cart-collaterals .cart_totals table.shop_table :is(th,td){padding:14px 16px !important}
body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content .cart-collaterals .cart_totals tr:first-child :is(th,td){border-top:0 !important}
body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content .cart-collaterals .cross-sells{flex:1 1 100%;order:2;width:100% !important;float:none !important}
body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content .wc-proceed-to-checkout{padding:0 !important;margin:0}
body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content .wc-proceed-to-checkout a.checkout-button{display:flex;width:100%;min-height:56px;margin:0 !important;font-size:13px !important}
body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content .woocommerce-shipping-calculator .shipping-calculator-button{color:var(--sage)}
body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content ul#shipping_method{margin:0;padding:0;list-style:none}
body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content ul#shipping_method li{margin:0 0 6px;padding:0}

/* ---------- checkout (518) ---------- */
body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content form.checkout h3,
body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content #order_review_heading{font-family:var(--display) !important;font-weight:400 !important;font-size:clamp(28px,2.6vw,36px) !important;text-transform:uppercase;line-height:1 !important;margin:0 0 18px !important;padding:0 !important;border:0 !important}
body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content form.checkout .woocommerce-billing-fields,
body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content form.checkout .woocommerce-shipping-fields,
body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content form.checkout .woocommerce-additional-fields{margin:0 0 28px}
body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content #order_review{padding:clamp(22px,2.5vw,32px) !important;background:var(--paper-2) !important;border:1px solid var(--line-l) !important;border-radius:0 !important}
body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content #order_review table.shop_table{margin:0 0 22px}
body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content #order_review .product-name{font-weight:500}
body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content #order_review .product-quantity{font-family:var(--mono);font-weight:500;color:var(--muted-l)}
body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content #payment{background:transparent !important;border-radius:0 !important;padding:0 !important}
body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content #payment ul.payment_methods{margin:0 0 18px !important;padding:0 !important;border:0 !important;list-style:none}
body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content #payment ul.payment_methods > li{margin:0 0 8px !important;padding:14px 16px !important;background:#fff;border:1px solid var(--line-l);list-style:none}
body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content #payment ul.payment_methods > li > label{display:inline;font-weight:600;font-size:15px}
body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content #payment div.payment_box{margin:12px 0 0 !important;padding:14px 0 0 !important;background:transparent !important;border-top:1px solid var(--line-l);border-radius:0 !important;color:var(--muted-l) !important;font-size:14px}
body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content #payment div.payment_box::before{display:none !important}
body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content #payment .place-order{margin:0 !important;padding:0 !important}
body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content #payment #place_order{display:flex;float:none !important;width:100% !important;min-height:56px;margin:16px 0 0 !important;font-size:13px !important}
body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content .woocommerce-terms-and-conditions-wrapper,
body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content .woocommerce-privacy-policy-text{font-size:13px;line-height:1.55;color:var(--muted-l)}
body.page-id-518:has(#bps-hdr) #content .woocommerce-form-coupon,
body.page-id-518:has(#bps-hdr) #content .woocommerce-form-login.login{padding:22px !important;background:#fff;border:1px solid var(--line-l) !important;border-radius:0 !important}

/* ---------- my account (519) ---------- */
body.page-id-519:has(#bps-hdr) #content .woocommerce > h2,
body.page-id-519:has(#bps-hdr) #content .woocommerce .u-column1 > h2,
body.page-id-519:has(#bps-hdr) #content .woocommerce .u-column2 > h2{margin-bottom:16px}
body.page-id-519:has(#bps-hdr) #content .woocommerce > form.woocommerce-form-login,
body.page-id-519:has(#bps-hdr) #content .woocommerce > form.lost_reset_password,
body.page-id-519:has(#bps-hdr) #content .woocommerce > h2{max-width:520px}
body.page-id-519:has(#bps-hdr) #content :is(form.woocommerce-form-login,form.woocommerce-form-register,form.lost_reset_password){margin:0 0 24px;padding:clamp(22px,3vw,36px) !important;background:var(--paper-2);border:1px solid var(--line-l) !important;border-radius:0 !important}
body.page-id-519:has(#bps-hdr) #content form.woocommerce-form-login .form-row:has(.woocommerce-form-login__submit){display:flex;flex-direction:column;align-items:flex-start;gap:16px;margin:4px 0 0}
body.page-id-519:has(#bps-hdr) #content form.woocommerce-form-login .woocommerce-form-login__rememberme{margin:0 !important;padding:0;float:none}
body.page-id-519:has(#bps-hdr) #content form.woocommerce-form-login .woocommerce-form-login__submit{float:none;width:100%;margin:0 !important}
body.page-id-519:has(#bps-hdr) #content .woocommerce-LostPassword{margin:16px 0 0;font-size:14px}
body.page-id-519:has(#bps-hdr) #content #customer_login{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(24px,4vw,56px)}
body.page-id-519:has(#bps-hdr) #content #customer_login::before,
body.page-id-519:has(#bps-hdr) #content #customer_login::after{display:none}
body.page-id-519:has(#bps-hdr) #content #customer_login > .u-column1,
body.page-id-519:has(#bps-hdr) #content #customer_login > .u-column2{width:auto !important;float:none !important;margin:0 !important}
/* logged-in dashboard */
body.page-id-519:has(#bps-hdr) #content .woocommerce-MyAccount-navigation ul{margin:0;padding:0;list-style:none;border:1px solid var(--line-l);background:#fff}
body.page-id-519:has(#bps-hdr) #content .woocommerce-MyAccount-navigation li{margin:0;padding:0;border-top:1px solid var(--line-l)}
body.page-id-519:has(#bps-hdr) #content .woocommerce-MyAccount-navigation li:first-child{border-top:0}
body.page-id-519:has(#bps-hdr) #content .woocommerce-MyAccount-navigation li a{display:block;padding:14px 18px;font-family:var(--mono);font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:var(--ink) !important;text-decoration:none !important}
body.page-id-519:has(#bps-hdr) #content .woocommerce-MyAccount-navigation li a:hover{background:var(--paper-2)}
body.page-id-519:has(#bps-hdr) #content .woocommerce-MyAccount-navigation li.is-active a{background:var(--sage);color:var(--paper) !important}
body.page-id-519:has(#bps-hdr) #content .woocommerce-MyAccount-content{font-size:16px;line-height:1.6}
body.page-id-519:has(#bps-hdr) #content .woocommerce-MyAccount-content address{padding:18px;background:#fff;border:1px solid var(--line-l);font-style:normal}

/* ---------- footer bar: hide the yellow mobile quote bar on checkout only (it would sit over Place order) ---------- */
body.page-id-518:has(#bps-hdr) #bps-ftr .m-quote{display:none !important}
body.page-id-518:has(#bps-hdr) #bps-ftr .ftr{padding-bottom:0}

/* ---------- responsive ---------- */
@media (max-width:921px){
  body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content .woocommerce table.shop_table_responsive thead{display:none}
  body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content .woocommerce table.shop_table_responsive,
  body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content .woocommerce table.shop_table_responsive tbody{display:block;width:100%;max-width:100%}
  body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content .woocommerce table.shop_table_responsive tr{display:block}
  body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content .woocommerce table.shop_table_responsive tr td{display:block;text-align:right !important;padding:12px 16px !important}
  body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content .woocommerce table.shop_table_responsive tr td::before{float:left;font-family:var(--mono);font-size:11px;font-weight:500;letter-spacing:.14em;text-transform:uppercase;color:var(--sage)}
  body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content table.cart tr.cart_item{position:relative;border-top:1px solid var(--line-l)}
  body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content table.cart tr.cart_item:first-child{border-top:0}
  body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content table.cart tr.cart_item td{border-top:0 !important}
  body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content .woocommerce table.cart tr td.product-remove{position:absolute;top:8px;right:4px;width:auto;padding:8px !important}
  body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content .woocommerce table.cart tr td.product-thumbnail{display:block !important;width:auto;text-align:left !important;padding:18px 16px 4px !important}
  body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content .woocommerce table.cart tr td.product-thumbnail::before{display:none}
  body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content .woocommerce table.cart tr td.product-name{text-align:left !important;padding-right:56px !important;overflow-wrap:anywhere}
  body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content table.cart td.product-name dl.variation{text-align:left}
  body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content .woocommerce table.cart tr td.product-name::before{display:none}
  body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content .woocommerce table.cart tr td.actions{text-align:left !important}
  body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content .woocommerce table.cart tr td.actions::before{display:none}
  body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content table.cart td.actions .coupon{display:flex;float:none;width:100%;margin:0 0 12px}
  body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content table.cart td.actions .coupon .input-text{flex:1 1 auto;width:auto !important;min-width:0}
  body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content table.cart td.actions .coupon .button{flex:0 0 auto;padding:14px 14px !important}
  body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content table.cart td.actions > .button{float:none;width:100%}
  body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content .cart-collaterals .cart_totals{width:100% !important}
  body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content .cart-collaterals .cart_totals table.shop_table tr{display:flex;justify-content:space-between}
  body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content .cart-collaterals .cart_totals table.shop_table :is(th,td){display:block;border-top:0 !important}
  body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content .cart-collaterals .cart_totals table.shop_table tr + tr{border-top:1px solid var(--line-l)}
  body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content .cart-collaterals .cart_totals table.shop_table td::before{display:none}
  body.page-id-519:has(#bps-hdr) #content #customer_login{grid-template-columns:1fr}
}
@media (max-width:640px){
  body:is(.page-id-3,.page-id-520):has(#bps-hdr) #content .entry-content,
  body:is(.page-id-3,.page-id-520):has(#bps-hdr) #content .entry-content :is(p,li){font-size:16.5px}
  body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content .entry-header .entry-title{font-size:clamp(48px,15vw,72px) !important}
  body:is(.page-id-3,.page-id-517,.page-id-518,.page-id-519,.page-id-520):has(#bps-hdr) #content :is(.woocommerce-message,.woocommerce-info) .button{float:none;display:flex;margin:12px 0 0}
}
