/*
Theme Name: BayiFlow Lite
Author: BayiFlow
Description: Lightweight ten-language WooCommerce reseller theme with a configurable native announcement carousel; no product photos. 
Version: 0.10.10
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: bayiflow-lite
Domain Path: /languages
License: GPL-2.0-or-later
*/
:root{--bf-ink:#1c3348;--bf-muted:#526b7e;--bf-border:#d1dee6;--bf-ground:#eaf1f5;--bf-surface:#f8fafc;--bf-soft:#edf3f7;--bf-input:#f0f5f8;--bf-surface-highlight:#f1f6fa;--bf-primary:#076f84;--bf-primary-hover:#055a6e;--bf-primary-tint:#dfeef3;--bf-on-primary:#fff;--bf-negative:#a64040;--bf-radius:14px;--bf-shadow:0 8px 22px rgba(15,44,70,.055)}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bf-ground);color:var(--bf-ink);font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;font-size:14px;line-height:1.55}
a{color:inherit;text-decoration:none}
a:hover{color:var(--bf-primary)}
button,input,select{font:inherit}
button,a,input,select,summary{outline-offset:3px}
.screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.bf-skip{position:absolute;z-index:50;left:-9999px;top:8px;background:var(--bf-surface);padding:10px;border:2px solid var(--bf-primary)}
.bf-skip:focus{left:8px}
.bf-header{background:var(--bf-surface);border-bottom:1px solid var(--bf-border);position:relative;z-index:20}
.bf-header-inner{max-width:1440px;margin:auto;display:grid;grid-template-columns:minmax(160px,220px) minmax(270px,1fr) auto;align-items:center;gap:28px;padding:16px 28px}
.bf-brand{display:flex;flex-direction:column;gap:0;min-width:0}
.bf-brand .custom-logo{display:block;max-width:176px;width:auto;height:44px;object-fit:contain;object-position:left center}
.bf-site-title{display:block;font-size:19px;font-weight:800;letter-spacing:-.035em;line-height:1.3;white-space:normal;overflow-wrap:anywhere}
.bf-brand-subtitle{font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:var(--bf-muted);font-weight:700;margin-top:3px}
.bf-search{position:relative;display:flex;align-items:center;min-width:0;background:var(--bf-input);border:1px solid var(--bf-border);border-radius:12px;min-height:51px;transition:border .2s,box-shadow .2s}
.bf-search:focus-within{border-color:var(--bf-primary);box-shadow:0 0 0 3px rgba(7,127,152,.12)}
.bf-search svg{flex:none;margin-left:15px;color:var(--bf-muted)}
.bf-search input[type=search]{flex:1;min-width:0;background:none;border:0;outline:0;padding:12px 14px;color:var(--bf-ink);font-size:14px}
.bf-search button{background:var(--bf-primary);color:var(--bf-on-primary);border:0;border-radius:0 10px 10px 0;font-weight:700;min-height:49px;padding:0 20px;cursor:pointer}
.bf-search button:hover{background:var(--bf-primary-hover)}
.bf-suggestions{position:absolute;top:calc(100% + 7px);left:0;right:0;background:var(--bf-surface);border:1px solid var(--bf-border);box-shadow:0 14px 28px rgba(16,37,62,.13);border-radius:12px;z-index:25;max-height:360px;overflow:auto}
.bf-suggestions[hidden]{display:none}
.bf-suggestion{display:flex;justify-content:space-between;gap:16px;padding:12px 15px;border-bottom:1px solid var(--bf-border);align-items:center;font-size:13px}
.bf-suggestion:last-child{border:0}
.bf-suggestion:hover,.bf-suggestion:focus,.bf-suggestion.is-highlighted{background:var(--bf-primary-tint);color:var(--bf-ink)}
.bf-suggestion-title{font-weight:650}
.bf-suggestion-price{white-space:nowrap;color:var(--bf-primary);font-weight:700}
.bf-suggestions-empty{padding:15px;color:var(--bf-muted)}
.bf-header-actions{display:flex;gap:16px;align-items:center;justify-content:flex-end;white-space:nowrap;font-size:13px;font-weight:650}
.bf-action-link{color:var(--bf-ink)}
.bf-cart-link{border:1px solid var(--bf-border);border-radius:9px;padding:10px 12px;display:inline-flex;gap:8px;align-items:center;background:var(--bf-surface)}
.bf-cart-count{display:inline-grid;place-items:center;min-width:21px;height:21px;border-radius:7px;background:var(--bf-primary-tint);color:var(--bf-primary);font-size:11px;font-weight:800}
.bf-languages{display:flex;gap:6px;align-items:center;color:var(--bf-muted);font-size:12px}
.bf-languages a{font-weight:750;color:var(--bf-muted);padding:3px}
.bf-languages a.is-active{color:var(--bf-primary);text-decoration:underline;text-underline-offset:4px}
.bf-nav-wrap{background:var(--bf-surface);border-bottom:1px solid var(--bf-border)}
.bf-nav{max-width:1400px;margin:auto;padding:0 28px}
.bf-nav-list{display:flex;flex-wrap:wrap;gap:25px;list-style:none;padding:9px 0;margin:0;font-size:12px;font-weight:650}
.bf-content{max-width:1440px;padding:26px 28px 60px;margin:auto;min-height:65vh}
.bf-frequent{padding:19px 21px 22px;border:1px solid var(--bf-border);background:linear-gradient(115deg,var(--bf-surface) 0%,var(--bf-surface-highlight) 100%);box-shadow:var(--bf-shadow);border-radius:var(--bf-radius);margin-bottom:22px}
.bf-section-heading{margin-bottom:14px}
.bf-section-heading h2,.bf-list-header h1{font-size:19px;line-height:1.35;margin:0 0 3px;letter-spacing:-.025em}
.bf-section-heading p,.bf-list-header p{margin:0;color:var(--bf-muted);font-size:12px}
.bf-frequent-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.bf-frequent-item{display:flex;flex-direction:column;min-width:0;gap:7px;border:1px solid var(--bf-border);background:var(--bf-surface);border-radius:10px;padding:13px 14px;transition:transform .15s,border .15s}
.bf-frequent-item:hover{transform:translateY(-2px);border-color:var(--bf-primary)}
.bf-frequent-title{color:var(--bf-ink);font-weight:720;font-size:13px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.35;min-height:34px}
.bf-frequent-price{font-size:12px;font-weight:800;color:var(--bf-ink)}
.bf-frequent-cta{font-size:11px;font-weight:750;color:var(--bf-primary);background:transparent;border:0;padding:0;text-align:left;cursor:pointer}.bf-frequent-cta:hover{text-decoration:underline}.bf-frequent-order{margin-top:auto}
.bf-catalog-layout{display:grid;grid-template-columns:255px minmax(0,1fr);gap:18px;align-items:start}
.bf-category-sidebar,.bf-catalog-main{background:var(--bf-surface);border:1px solid var(--bf-border);box-shadow:var(--bf-shadow);border-radius:var(--bf-radius);min-width:0}
.bf-category-sidebar{position:sticky;top:12px;padding:14px 12px;max-height:calc(100vh - 26px);overflow:auto}
.bf-sidebar-heading{padding:6px 11px 13px;border-bottom:1px solid var(--bf-border);margin-bottom:8px}
.bf-sidebar-heading h2{font-size:13px;margin:0;letter-spacing:.01em}
.bf-all-categories,.bf-category-link,.bf-category-all{display:block;padding:10px 12px;font-size:12px;border-radius:8px;font-weight:620;color:var(--bf-ink)}
.bf-all-categories.is-active,.bf-category-link.is-active,.bf-category-all.is-active{background:var(--bf-primary-tint);color:var(--bf-primary);font-weight:800}
.bf-category-list{list-style:none;margin:0;padding:0}
.bf-category-item{margin:1px 0}
.bf-category-item .bf-category-list{padding-left:13px;margin:0 0 5px 3px;border-left:1px solid var(--bf-border)}
.bf-cat-details>summary{padding:10px 12px;display:flex;justify-content:space-between;gap:12px;font-size:12px;font-weight:680;cursor:pointer;list-style:none;border-radius:8px}
.bf-cat-details>summary::-webkit-details-marker{display:none}
.bf-cat-details>summary:hover,.bf-category-link:hover,.bf-all-categories:hover{background:var(--bf-soft)}
.bf-cat-chevron{color:var(--bf-muted);transition:transform .15s}
.bf-cat-details[open]>.bf-cat-chevron,.bf-cat-details[open]>summary .bf-cat-chevron{transform:rotate(180deg)}
.bf-category-all{padding-left:16px;font-size:11px;color:var(--bf-primary)}
.bf-catalog-main{overflow:hidden}
.bf-list-header{padding:20px 22px 16px;display:flex;justify-content:space-between;align-items:center;gap:14px}
.bf-count{font-size:11px;white-space:nowrap;color:var(--bf-muted);background:var(--bf-soft);border:1px solid var(--bf-border);padding:5px 9px;border-radius:7px;font-weight:700}
.bf-term-description{margin:0 22px 14px;font-size:12px;color:var(--bf-muted)}
.bf-subcategories{display:flex;flex-wrap:wrap;gap:8px;padding:0 22px 16px}
.bf-subcategories a{font-size:11px;font-weight:650;border:1px solid var(--bf-border);background:var(--bf-primary-tint);border-radius:7px;padding:6px 10px;color:var(--bf-primary)}
.bf-list-headings{display:grid;grid-template-columns:minmax(230px,1fr) minmax(350px,auto);gap:16px;background:var(--bf-soft);color:var(--bf-muted);font-weight:750;font-size:11px;letter-spacing:.025em;text-transform:uppercase;padding:11px 22px;border-top:1px solid var(--bf-border);border-bottom:1px solid var(--bf-border)}
.bf-list-headings span:last-child{text-align:right}
.bf-product-row{display:grid;grid-template-columns:minmax(230px,1fr) minmax(350px,auto);gap:12px 18px;padding:13px 22px;border-bottom:1px solid var(--bf-border);align-items:center}
.bf-product-row:last-child{border-bottom:0}
.bf-product-row:hover{background:var(--bf-surface-highlight)}
.bf-product-meta{min-width:0;display:flex;flex-wrap:wrap;align-items:center;gap:3px 12px}
.bf-product-title{display:block;flex-basis:100%;font-size:13px;font-weight:720;line-height:1.4;color:var(--bf-ink)}
.bf-sku{color:var(--bf-muted);font-size:10px}
.bf-stock{font-size:10px;font-weight:700;color:var(--bf-primary)}
.bf-stock-empty{color:var(--bf-negative)}
.bf-product-order{display:flex;justify-content:flex-end;align-items:center;gap:14px;min-width:0}
.bf-price{min-width:85px;max-width:180px;text-align:right;font-size:13px;color:var(--bf-ink);font-weight:800;line-height:1.4}
.bf-price del{color:var(--bf-muted);font-size:11px;font-weight:500}
.bf-price ins{text-decoration:none;color:var(--bf-primary)}
.bf-buy-form{display:flex;gap:6px;align-items:center;flex-wrap:nowrap}
.bf-qty{width:50px!important;min-width:50px!important;height:36px!important;background:var(--bf-surface)!important;border:1px solid var(--bf-border)!important;border-radius:7px!important;padding:4px 6px!important;text-align:center;color:var(--bf-ink)}
.bf-btn,button.bf-btn{display:inline-flex;align-items:center;justify-content:center;min-height:36px;text-align:center;background:var(--bf-primary);border:1px solid var(--bf-primary);border-radius:8px;padding:7px 12px;color:var(--bf-on-primary)!important;font-size:11px;font-weight:750;line-height:1.2;cursor:pointer;white-space:nowrap;box-shadow:none;text-decoration:none!important}
.bf-btn:hover,button.bf-btn:hover{background:var(--bf-primary-hover);border-color:var(--bf-primary-hover);color:var(--bf-on-primary)!important}
.bf-btn-secondary,button.bf-btn-secondary{background:var(--bf-surface);color:var(--bf-primary)!important;border-color:var(--bf-border)}
.bf-btn-secondary:hover,button.bf-btn-secondary:hover{background:var(--bf-primary-tint)!important;border-color:var(--bf-primary)!important;color:var(--bf-primary)!important}
.bf-variation-slot{grid-column:1/-1;border-radius:10px;background:var(--bf-input);border:1px solid var(--bf-border);padding:14px 18px;margin:0 0 2px}
.bf-variation-slot[hidden]{display:none}
.bf-variation-slot .variations{margin:0 0 10px;width:100%}
.bf-variation-slot .variations th,.bf-variation-slot .variations td{padding:5px 8px 5px 0;vertical-align:middle}
.bf-variation-slot .variations select{height:37px;max-width:100%;border:1px solid var(--bf-border);background:var(--bf-surface);border-radius:7px;padding:4px 8px}
.bf-variation-slot .single_variation_wrap .quantity{display:inline-block;margin-right:6px}
.bf-variation-slot .single_variation_wrap .quantity input{max-width:64px;height:36px}
.bf-variation-slot .single_add_to_cart_button{min-height:36px!important;padding:8px 11px!important;border-radius:8px!important}
.bf-variation-slot .bf-btn{margin-left:6px}
.bf-variation-slot .woocommerce-variation-price{padding:8px 0;font-weight:750}
.bf-empty,.bf-message{padding:30px 22px;text-align:center;color:var(--bf-muted)}
.bf-pagination{display:flex;justify-content:center;align-items:center;gap:20px;padding:20px;color:var(--bf-muted);font-size:12px}
.bf-pagination a{border:1px solid var(--bf-border);padding:8px 12px;border-radius:7px;color:var(--bf-primary);font-weight:750}
.bf-footer{border-top:1px solid var(--bf-border);background:var(--bf-surface);color:var(--bf-muted);font-size:12px}
.bf-footer-inner{max-width:1440px;margin:0 auto;padding:27px 28px 20px}
.bf-footer-meta{display:flex;justify-content:space-between;gap:15px;padding-top:14px;border-top:1px solid var(--bf-border);font-size:11px}
.bf-footer-mobile{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:0 0 24px}
.bf-footer-mobile-copy{display:flex;flex-direction:column;gap:4px;max-width:500px}
.bf-footer-mobile-copy strong{font-size:16px;line-height:1.25;color:var(--bf-ink)}
.bf-footer-mobile-copy span{font-size:12px;line-height:1.5;color:var(--bf-muted)}
.bf-footer-app-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.bf-footer-app-link{appearance:none;border:1px solid var(--bf-border);display:inline-flex;align-items:center;gap:10px;min-height:53px;min-width:166px;text-align:left;background:var(--bf-input);color:var(--bf-ink);border-radius:11px;padding:9px 14px;font:inherit;cursor:pointer;transition:border-color .15s,background .15s,transform .15s}
.bf-footer-app-link:hover,.bf-footer-app-link:focus-visible{background:var(--bf-primary-tint);border-color:var(--bf-primary);color:var(--bf-ink);transform:translateY(-1px)}
.bf-footer-app-link svg{flex:none;width:23px;height:23px;stroke:var(--bf-primary)}
.bf-footer-app-copy{display:flex;flex-direction:column;gap:2px}
.bf-footer-app-copy strong{font-size:13px;font-weight:800;color:var(--bf-ink);line-height:1.2}
.bf-footer-app-copy small{font-size:10px;color:var(--bf-muted);line-height:1.3}

.bf-prose,.bf-product-detail{max-width:1180px;background:var(--bf-surface);margin-top:28px;margin-bottom:28px;border:1px solid var(--bf-border);border-radius:var(--bf-radius);padding:32px}
.bf-prose h1,.bf-product-detail h1{font-size:25px;margin-top:0}
.bf-prose img,.bf-product-detail img{max-width:100%;height:auto}
.bf-product-detail .woocommerce-product-gallery{display:none!important}
.bf-product-detail .woocommerce div.product div.summary,.bf-product-detail div.product .summary{float:none!important;width:100%!important;max-width:820px}
.bf-product-detail .woocommerce-tabs{clear:both}
.bf-content .woocommerce table.shop_table,.bf-content .woocommerce-page table.shop_table{border-color:var(--bf-border)}
.bf-content .woocommerce #respond input#submit,.bf-content .woocommerce a.button,.bf-content .woocommerce button.button,.bf-content .woocommerce input.button,.bf-content .woocommerce-page a.button{background:var(--bf-primary);color:var(--bf-on-primary);border-radius:8px}
.bf-content .woocommerce-notices-wrapper{width:100%;grid-column:1/-1}
@media(max-width:1100px){.bf-header-inner{gap:14px;grid-template-columns:minmax(145px,190px) minmax(210px,1fr) auto}.bf-header-actions{gap:9px}.bf-catalog-layout{grid-template-columns:225px minmax(0,1fr)}.bf-list-headings,.bf-product-row{grid-template-columns:minmax(175px,1fr) minmax(310px,auto)}.bf-product-order{gap:8px}.bf-btn{padding:7px 9px}}
@media(max-width:850px){.bf-header-inner{grid-template-columns:minmax(0,1fr) auto;gap:12px 15px;padding:14px 18px}.bf-search{grid-column:1/-1;grid-row:2}.bf-content{padding:18px 14px 40px}.bf-catalog-layout{grid-template-columns:1fr}.bf-category-sidebar{position:static;max-height:210px;overflow:auto}.bf-category-list{columns:2;column-gap:14px}.bf-category-item{break-inside:avoid}.bf-frequent-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.bf-footer-inner{padding:22px 16px 16px}.bf-list-headings,.bf-product-row{grid-template-columns:minmax(180px,1fr) minmax(320px,auto)}}
@media(max-width:610px){.bf-header-inner{padding:12px 14px}.bf-site-title{font-size:16px}.bf-brand-subtitle{font-size:9px}.bf-header-actions{font-size:11px;gap:6px}.bf-action-link{display:none}.bf-cart-link{padding:7px}.bf-frequent{padding:15px}.bf-frequent-grid{grid-template-columns:1fr 1fr;gap:7px}.bf-frequent-item{padding:10px}.bf-frequent-title{font-size:12px}.bf-category-list{columns:1}.bf-category-sidebar{max-height:190px}.bf-list-headings{display:none}.bf-list-header{padding:17px 14px}.bf-list-header h1{font-size:18px}.bf-product-row{grid-template-columns:1fr;gap:7px;padding:13px 14px}.bf-product-order{justify-content:space-between;gap:8px}.bf-price{text-align:left;min-width:0}.bf-qty{width:42px!important;min-width:42px!important}.bf-buy-form{gap:4px}.bf-btn{font-size:10px;padding:7px 8px}.bf-footer-mobile{flex-direction:column;align-items:stretch;gap:14px}.bf-footer-app-actions{justify-content:flex-start}.bf-footer-app-link{flex:1;min-width:0}.bf-footer-meta{flex-wrap:wrap}.bf-prose,.bf-product-detail{padding:18px;margin:16px 12px}.bf-variation-slot{padding:10px}}
@media(max-width:365px){.bf-frequent-grid{grid-template-columns:1fr}.bf-header-actions{gap:3px}.bf-cart-link{font-size:10px}.bf-search button{padding:0 13px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

/* v0.2 progressive category-navigation feedback; plain links still work without JS. */
#bf-catalog-dynamic[aria-busy="true"] {opacity:.56;pointer-events:none;transition:opacity .12s}
#bf-catalog-dynamic:focus {outline:0}
.bf-catalog-layout a[data-bf-nav]:focus-visible {outline:2px solid var(--bf-primary);outline-offset:2px}

/* v0.3: customer wallet and mobile app controls. The wallet displays plain text,
   never HTML from a provider, and links to that provider's account ledger. */
.bf-wallet-link{display:inline-flex;align-items:center;gap:9px;padding:8px 12px;border-radius:10px;background:var(--bf-primary-tint);color:var(--bf-primary);border:1px solid var(--bf-border);min-width:150px;max-width:240px;white-space:normal;line-height:1.16}
.bf-wallet-link:hover,.bf-wallet-link:focus{background:var(--bf-primary-tint);color:var(--bf-primary);border-color:var(--bf-primary)}
.bf-wallet-copy{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}
.bf-wallet-caption{font-size:10px;letter-spacing:.02em;font-weight:600;color:var(--bf-muted)}
.bf-wallet-copy strong{font-size:14px;font-weight:850;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.bf-wallet-arrow{flex:none;opacity:.6}
.bf-install-btn{background:var(--bf-surface);border:1px solid var(--bf-border);border-radius:8px;color:var(--bf-primary);padding:9px 11px;font-weight:750;font-size:11px;cursor:pointer}
.bf-install-btn:hover{border-color:var(--bf-primary);background:var(--bf-primary-tint)}
.bf-install-btn[hidden]{display:none!important}
.bf-install-dialog{border:1px solid var(--bf-border);border-radius:16px;box-shadow:0 16px 50px rgba(5,35,62,.24);padding:25px;max-width:min(430px,calc(100vw - 32px));color:var(--bf-ink)}
.bf-install-dialog::backdrop{background:rgba(9,35,52,.4)}
.bf-install-dialog h2{margin:0 0 8px;font-size:20px}
.bf-install-dialog p{margin:0 0 20px;font-size:14px}
@media(max-width:1200px){.bf-header-inner{gap:13px}.bf-header-actions{gap:9px}.bf-wallet-link{padding:7px 9px;min-width:138px}.bf-wallet-copy strong{font-size:12px}}
@media(max-width:850px){.bf-wallet-link{max-width:200px}}
@media(max-width:740px){.bf-header-inner{grid-template-columns:minmax(0,1fr);gap:10px;padding:12px 14px}.bf-brand{grid-row:1}.bf-header-actions{grid-column:1;grid-row:2;justify-content:space-between;flex-wrap:wrap;gap:7px}.bf-search{grid-column:1;grid-row:3}.bf-wallet-link{flex:1;min-width:135px;max-width:none}.bf-header-actions .bf-languages{order:1}.bf-wallet-link{order:2}.bf-cart-link{order:3}.bf-install-btn{order:4}.bf-wallet-arrow{display:none}}
@media(max-width:390px){.bf-wallet-link{flex-basis:47%}.bf-cart-link{font-size:11px}.bf-install-btn{flex-basis:40%}}

@media(max-width:380px){.bf-footer-app-actions{flex-direction:column}.bf-footer-app-link{width:100%}}
@media(min-width:611px) and (max-width:920px){.bf-footer-mobile{flex-direction:column;align-items:flex-start}.bf-footer-app-actions{justify-content:flex-start}}

/* B5 shared modes: identical tokens across header, catalog, account, checkout and wallet. */
html[data-bf-theme="light"] {color-scheme:light}
html[data-bf-theme="dim"] {color-scheme:dark;--bf-ink:#eaf3fb;--bf-muted:#bbcbd8;--bf-border:#40566b;--bf-ground:#1a2837;--bf-surface:#283a4b;--bf-soft:#2e4356;--bf-input:#2c4053;--bf-surface-highlight:#304657;--bf-primary:#77d8ea;--bf-primary-hover:#a1ebf5;--bf-primary-tint:#325262;--bf-on-primary:#062e3d;--bf-negative:#ffadad;--bf-shadow:0 8px 24px rgba(0,0,0,.22)}
html[data-bf-theme="dark"] {color-scheme:dark;--bf-ink:#f0f6fc;--bf-muted:#b4c4d5;--bf-border:#34465a;--bf-ground:#0c1420;--bf-surface:#182535;--bf-soft:#223247;--bf-input:#1b2b3d;--bf-surface-highlight:#233549;--bf-primary:#84dfec;--bf-primary-hover:#b0f4f5;--bf-primary-tint:#24475b;--bf-on-primary:#032b36;--bf-negative:#ffadad;--bf-shadow:0 9px 28px rgba(0,0,0,.4)}
.bf-header-actions .bf-action-link{flex-shrink:0}
.bf-theme-modes{display:flex;align-items:center;gap:2px;border:1px solid var(--bf-border);background:var(--bf-soft);border-radius:11px;padding:3px;flex-shrink:0}
.bf-mode-button{min-width:43px;display:flex;align-items:center;justify-content:center;gap:5px;border:1px solid transparent;background:transparent;color:var(--bf-muted);padding:6px 5px;border-radius:8px;cursor:pointer;font-weight:650;font-size:10px;line-height:1.1}
.bf-mode-button:hover,.bf-mode-button:focus-visible{color:var(--bf-ink);background:var(--bf-surface-highlight)}
.bf-mode-button[aria-pressed="true"]{background:var(--bf-surface);border-color:var(--bf-border);color:var(--bf-primary);box-shadow:var(--bf-shadow)}
.bf-mode-label{white-space:nowrap}
.bf-profile-shell{max-width:1200px}
.bf-notice{color:var(--bf-ink);padding:12px 14px;border:1px solid var(--bf-border);background:var(--bf-soft);border-radius:10px}
/* WooCommerce follows the same palette, including the account/profile form and wallet UI. */
.bf-content .woocommerce,
.bf-content .woocommerce-MyAccount-navigation,
.bf-content .woocommerce-MyAccount-content{color:var(--bf-ink)}
.bf-content .woocommerce-MyAccount-navigation ul{list-style:none;padding:0;margin:0 0 14px;display:flex;gap:6px;flex-wrap:wrap}
.bf-content .woocommerce-MyAccount-navigation a{color:var(--bf-primary);display:block;padding:9px 12px;border:1px solid var(--bf-border);border-radius:8px;background:var(--bf-soft)}
.bf-content .woocommerce-MyAccount-navigation .is-active a{background:var(--bf-primary-tint);font-weight:750}
.bf-content .woocommerce a:not(.button){color:var(--bf-primary)}
.bf-content .woocommerce form .form-row input.input-text,
.bf-content .woocommerce form .form-row textarea,
.bf-content .woocommerce form .form-row select,
.bf-content .woocommerce .input-text,
.bf-content .woocommerce select,
.bf-content .woocommerce textarea,
.bf-content .woocommerce input[type="number"],
.bf-content .woocommerce input[type="text"],
.bf-content .woocommerce input[type="email"],
.bf-content .woocommerce input[type="password"]{background:var(--bf-input);color:var(--bf-ink);border:1px solid var(--bf-border);border-radius:7px;padding:9px}
.bf-content .woocommerce table.shop_table,
.bf-content .woocommerce table.shop_table td,
.bf-content .woocommerce table.shop_table th,
.bf-content .woocommerce .woocommerce-customer-details address,
.bf-content .woocommerce form.checkout_coupon,
.bf-content .woocommerce form.login,
.bf-content .woocommerce form.register{background:var(--bf-surface);color:var(--bf-ink);border-color:var(--bf-border)}
.bf-content .woocommerce table.shop_table tr,.bf-content .woocommerce table.shop_table thead{background:var(--bf-surface)}
.bf-content .woocommerce-message,
.bf-content .woocommerce-info,
.bf-content .woocommerce-error{background:var(--bf-soft);color:var(--bf-ink);border-color:var(--bf-primary)}
.bf-content .woocommerce #respond input#submit,
.bf-content .woocommerce a.button,
.bf-content .woocommerce button.button,
.bf-content .woocommerce input.button,
.bf-content .woocommerce-page a.button{color:var(--bf-on-primary)!important;background:var(--bf-primary)!important}
.bf-content .woocommerce a.button:hover,
.bf-content .woocommerce button.button:hover{background:var(--bf-primary-hover)!important}
.bf-content .woocommerce-checkout-payment,
.bf-content .woocommerce-checkout-payment .payment_box,
.bf-content #payment,
.bf-content #payment .payment_box,
.bf-content .woo-wallet-content,
.bf-content .woo-wallet-myaccount-page{background:var(--bf-soft);color:var(--bf-ink)}
.bf-content .woocommerce-checkout-payment label,
.bf-content #payment label{color:var(--bf-ink)}
.bf-install-dialog{background:var(--bf-surface);color:var(--bf-ink)}
@media(max-width:1180px) and (min-width:741px){.bf-header-inner{grid-template-columns:minmax(0,1fr) auto;gap:12px 18px}.bf-brand{grid-column:1;grid-row:1}.bf-header-actions{grid-column:2;grid-row:1}.bf-search{grid-column:1/-1;grid-row:2}}
@media(max-width:610px){.bf-action-link{display:inline-flex}.bf-mode-label{display:none}.bf-mode-button{min-width:31px;padding:6px 5px}.bf-theme-modes{order:1}.bf-header-actions .bf-languages{order:2}.bf-wallet-link{order:3}.bf-action-link{order:4}.bf-cart-link{order:5}.bf-install-btn{order:6}}

/* B6 Premium: shared surfaces, high contrast native selects, compact purchase controls. */
:root{--bf-focus:rgba(7,139,165,.24);--bf-panel-glow:rgba(17,133,162,.045)}
html[data-bf-theme="dim"]{--bf-focus:rgba(137,230,245,.28);--bf-panel-glow:rgba(113,209,229,.035)}
html[data-bf-theme="dark"]{--bf-focus:rgba(137,230,245,.32);--bf-panel-glow:rgba(113,209,229,.045)}
body{background:var(--bf-ground);text-rendering:optimizeLegibility}
.bf-content{background:radial-gradient(ellipse 60% 290px at 55% -120px,var(--bf-panel-glow),transparent),var(--bf-ground)}
.bf-header{backdrop-filter:saturate(1.15);box-shadow:0 2px 12px rgba(9,32,56,.025)}
.bf-header-inner{gap:clamp(12px,1.6vw,24px)}
.bf-site-title{letter-spacing:-.045em}
.bf-brand-subtitle{letter-spacing:.105em}
.bf-search{box-shadow:inset 0 1px 1px rgba(0,0,0,.015)}
.bf-category-sidebar,.bf-catalog-main,.bf-frequent{border-radius:16px;box-shadow:0 2px 8px rgba(12,29,50,.025),0 16px 38px rgba(12,29,50,.045)}
.bf-frequent{padding:20px 22px}
.bf-frequent-grid{gap:11px}
.bf-frequent-item{gap:8px;position:relative;min-height:140px;padding:14px 16px;transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease}
.bf-frequent-item:hover{box-shadow:0 9px 20px var(--bf-panel-glow)}
.bf-frequent-top{display:flex;justify-content:flex-end}
.bf-qty-badge{color:var(--bf-primary);border:1px solid var(--bf-border);background:var(--bf-soft);font-size:10px;font-weight:750;border-radius:7px;padding:2px 8px;font-variant-numeric:tabular-nums}
.bf-frequent-title{min-height:auto;font-size:13px;line-height:1.4}
.bf-frequent-price{font-size:13px;margin-top:auto}
.bf-frequent-order{margin-top:5px}
.bf-frequent-cta{display:inline-flex;align-items:center;gap:7px;line-height:1.2;border:1px solid var(--bf-border);border-radius:8px;min-height:34px;padding:8px 11px;background:var(--bf-primary-tint);color:var(--bf-primary);font-size:11px;font-weight:800;transition:border-color .15s ease,transform .15s ease}
.bf-frequent-cta:hover,.bf-frequent-cta:focus-visible{text-decoration:none;background:var(--bf-soft);border-color:var(--bf-primary);transform:translateY(-1px)}
.bf-frequent-item .bf-frequent-order{display:flex}
.bf-list-header{padding-bottom:12px}
.bf-popularity-hint{padding:8px 22px;margin:0!important;font-size:11px;color:var(--bf-muted);border-bottom:1px solid var(--bf-border);background:var(--bf-surface-highlight)}
.bf-product-row{min-height:61px;transition:background .15s ease}
.bf-product-title{font-weight:720}
.bf-product-order .bf-btn{font-size:11px;min-height:37px}
.bf-buy-form{flex-wrap:wrap;justify-content:flex-end;gap:5px}
.bf-qty{height:37px!important}
.bf-theme-cycle{appearance:none;flex:none;display:inline-grid;place-items:center;width:41px;height:41px;min-width:41px;border:1px solid var(--bf-border);border-radius:11px;background:var(--bf-surface);color:var(--bf-ink);cursor:pointer;transition:border-color .16s,background .16s,transform .16s}
.bf-theme-cycle:hover,.bf-theme-cycle:focus-visible{border-color:var(--bf-primary);background:var(--bf-soft);color:var(--bf-primary);transform:translateY(-1px)}
.bf-theme-cycle .bf-mode-icon{display:none;width:19px;height:19px}
html[data-bf-theme="light"] .bf-theme-cycle .bf-mode-icon-light,html:not([data-bf-theme]) .bf-theme-cycle .bf-mode-icon-light{display:block}
html[data-bf-theme="dim"] .bf-theme-cycle .bf-mode-icon-dim{display:block}
html[data-bf-theme="dark"] .bf-theme-cycle .bf-mode-icon-dark{display:block}
/* Woo and WordPress native variable-product dropdowns: natural length, never a full-width blank bar. */
.bf-variation-slot .variations select,
.bf-product-detail .variations select,
.bf-product-detail .woocommerce select,
.bf-content .variations select{
  box-sizing:border-box!important;
  display:inline-block!important;
  width:auto!important;
  min-width:min(16ch,100%)!important;
  max-width:min(100%,36ch)!important;
  min-height:41px!important;
  height:auto!important;
  padding:8px 30px 8px 11px!important;
  border:1px solid var(--bf-border)!important;
  border-radius:9px!important;
  background-color:var(--bf-input)!important;
  color:var(--bf-ink)!important;
  font-size:14px!important;
  line-height:1.4!important;
  font-weight:570!important;
  box-shadow:none!important;
  color-scheme:inherit;
}
.bf-product-detail .variations td,
.bf-variation-slot .variations td{width:auto!important;max-width:100%;padding:5px 8px 5px 0!important}
.bf-product-detail .variations th,
.bf-variation-slot .variations th{color:var(--bf-ink)!important;white-space:normal!important;font-weight:720}
.bf-product-detail .variations select option,
.bf-variation-slot .variations select option{background:var(--bf-surface);color:var(--bf-ink);font-size:14px;line-height:1.4}
html[data-bf-theme="dim"] .variations select option{background:#273a4c!important;color:#f3f8ff!important}
html[data-bf-theme="dark"] .variations select option{background:#192b3d!important;color:#f3f8ff!important}
html[data-bf-theme="light"] .variations select option{background:#fff!important;color:#183149!important}
.bf-product-detail .variations select:focus-visible,
.bf-variation-slot .variations select:focus-visible{outline:2px solid var(--bf-primary);outline-offset:2px;box-shadow:0 0 0 4px var(--bf-focus)!important}
.bf-variation-slot{background:var(--bf-soft);padding:14px;border-color:var(--bf-border)}
.bf-product-detail .single_add_to_cart_button,
.bf-variation-slot .single_add_to_cart_button{background:var(--bf-primary)!important;color:var(--bf-on-primary)!important;border:1px solid var(--bf-primary)!important;border-radius:9px!important;padding:10px 15px!important;min-height:40px!important}
.bf-product-detail .single_add_to_cart_button:hover,
.bf-variation-slot .single_add_to_cart_button:hover{background:var(--bf-primary-hover)!important;color:var(--bf-on-primary)!important}
.bf-product-detail input.qty,.bf-variation-slot input.qty{background:var(--bf-input)!important;color:var(--bf-ink)!important;border:1px solid var(--bf-border)!important;border-radius:8px!important;min-height:40px!important}
.bf-variation-slot .bf-btn{min-height:40px}
.bf-product-detail .woocommerce-tabs .tabs li,
.bf-product-detail .woocommerce-tabs .tabs li a{color:var(--bf-ink)!important;background:var(--bf-soft)!important;border-color:var(--bf-border)!important}
.bf-content select,.bf-content input,.bf-content textarea{color-scheme:inherit}
.bf-content :focus-visible,.bf-header :focus-visible,.bf-footer :focus-visible{outline:2px solid var(--bf-primary);outline-offset:3px}
@media(max-width:1100px){.bf-header-actions{gap:7px}.bf-theme-cycle{width:37px;height:37px;min-width:37px}}
@media(max-width:740px){.bf-theme-cycle{order:1}.bf-header-actions .bf-languages{order:2}.bf-wallet-link{order:3}.bf-action-link{order:4}.bf-cart-link{order:5}.bf-install-btn{order:6}}
@media(max-width:610px){.bf-frequent-item{min-height:124px;padding:11px}.bf-frequent-cta{font-size:10px;min-height:34px;padding:6px 9px}.bf-qty-badge{font-size:9px}.bf-theme-cycle{width:36px;height:36px;min-width:36px}.bf-product-order{flex-wrap:wrap;justify-content:flex-start}.bf-buy-form{justify-content:flex-start}.bf-product-detail .variations,.bf-variation-slot .variations{width:100%;display:block}.bf-product-detail .variations select,.bf-variation-slot .variations select{max-width:100%!important}}
@media(prefers-reduced-motion:reduce){.bf-frequent-item,.bf-theme-cycle,.bf-frequent-cta{transition:none!important;transform:none!important}}

/* B7: compact classic checkout with retained required fields and tokenised order pages. */
.bf-content .bf-billing-details{background:var(--bf-surface);color:var(--bf-ink);border:1px solid var(--bf-border);border-radius:12px;margin:0 0 20px;overflow:visible}
.bf-content .bf-billing-details>summary{cursor:pointer;list-style:none;display:flex;align-items:center;gap:12px;padding:13px 16px;color:var(--bf-ink);font-weight:760;background:var(--bf-soft);border-radius:12px}
.bf-content .bf-billing-details>summary::-webkit-details-marker{display:none}
.bf-content .bf-billing-details>summary small{font-size:12px;font-weight:520;color:var(--bf-muted);margin-left:auto}
.bf-content .bf-billing-details>summary .bf-billing-chevron{width:9px;height:9px;border-right:2px solid var(--bf-muted);border-bottom:2px solid var(--bf-muted);transform:rotate(45deg);transition:transform .12s}
.bf-content .bf-billing-details[open]>summary{border-radius:12px 12px 0 0;border-bottom:1px solid var(--bf-border)}
.bf-content .bf-billing-details[open]>summary .bf-billing-chevron{transform:rotate(225deg)}
.bf-content .bf-billing-details>.woocommerce-billing-fields{padding:14px 16px}
.bf-content .bf-billing-details .woocommerce-billing-fields>h3{display:none}
.bf-content .woocommerce form.checkout .form-row label{color:var(--bf-ink);font-weight:560}
.bf-content .woocommerce form.checkout .form-row{margin-bottom:10px}
.bf-content .woocommerce form.checkout .form-row input.input-text,
.bf-content .woocommerce form.checkout .form-row select,
.bf-content .woocommerce form.checkout .form-row .select2-selection,
.bf-content .woocommerce form.checkout .form-row textarea{color:var(--bf-ink)!important;background:var(--bf-input)!important;border:1px solid var(--bf-border)!important;border-radius:9px!important;box-shadow:none;min-height:39px}
.bf-content .woocommerce form.checkout .form-row .select2-selection__rendered{color:var(--bf-ink)!important;line-height:37px}
.bf-content .woocommerce form.checkout .form-row .select2-selection__arrow b{border-top-color:var(--bf-ink)!important}
.bf-content .woocommerce form.checkout .form-row input::placeholder{color:var(--bf-muted)!important;opacity:.8}
.bf-content .woocommerce .woocommerce-checkout-review-order-table,
.bf-content .woocommerce .woocommerce-checkout-review-order-table th,
.bf-content .woocommerce .woocommerce-checkout-review-order-table td,
.bf-content .woocommerce ul.order_details,
.bf-content .woocommerce ul.order_details li,
.bf-content .woocommerce .woocommerce-order-details,
.bf-content .woocommerce .woocommerce-customer-details{background:var(--bf-surface)!important;color:var(--bf-ink)!important;border-color:var(--bf-border)!important}
.bf-content .woocommerce .woocommerce-order{color:var(--bf-ink)}
.bf-content .woocommerce .woocommerce-order .woocommerce-notice,
.bf-content .woocommerce .woocommerce-order .woocommerce-thankyou-order-received{color:var(--bf-ink);font-size:15px}
.bf-content .woocommerce .woocommerce-order .woocommerce-order-overview{border:1px solid var(--bf-border);border-radius:12px;padding:14px;display:flex;gap:12px;flex-wrap:wrap;list-style:none}
.bf-content .woocommerce .woocommerce-order .woocommerce-order-overview li{min-width:130px;max-width:100%;margin:0;padding:8px 12px!important;border-right:1px solid var(--bf-border)!important;overflow-wrap:anywhere}
.bf-content .woocommerce .woocommerce-order h2,.bf-content .woocommerce .woocommerce-order h3{color:var(--bf-ink)}
.bf-content .woocommerce .woocommerce-order .woocommerce-order-details table{width:100%;background:var(--bf-surface)!important;color:var(--bf-ink)!important;border-color:var(--bf-border)!important}
.bf-content .bf-order-billing-details{margin-top:22px;background:var(--bf-surface);border:1px solid var(--bf-border);border-radius:12px}
.bf-content .bf-order-billing-details>summary{cursor:pointer;padding:13px 16px;color:var(--bf-ink);font-weight:700;background:var(--bf-soft);border-radius:12px}
.bf-content .bf-order-billing-details>section{padding:12px 16px}
/* Inconsistent third-party license panels: restyle surfaces without altering status badges or keys. */
.bf-content .woocommerce-order .bf-order-license-panel{background:var(--bf-surface)!important;color:var(--bf-ink)!important;border:1px solid var(--bf-border)!important;border-radius:14px!important;padding:clamp(12px,2vw,24px)!important}
.bf-content .woocommerce-order .bf-order-license-panel h1,
.bf-content .woocommerce-order .bf-order-license-panel h2,
.bf-content .woocommerce-order .bf-order-license-panel h3,
.bf-content .woocommerce-order .bf-order-license-panel p{color:var(--bf-ink)!important}
.bf-content .woocommerce-order .bf-order-license-panel :is(table,th,td,.bf-license-neutral-surface){background:var(--bf-soft)!important;color:var(--bf-ink)!important;border-color:var(--bf-border)!important}
.bf-content .woocommerce-order .bf-order-license-panel a{color:var(--bf-primary)}
.bf-content .woocommerce-order .bf-order-license-panel input,
.bf-content .woocommerce-order .bf-order-license-panel textarea{background:var(--bf-input)!important;color:var(--bf-ink)!important;border-color:var(--bf-border)!important}
@media(max-width:650px){.bf-content .bf-billing-details>summary small{display:none}.bf-content .woocommerce .woocommerce-order .woocommerce-order-overview{display:block}}


/* B8: eye-friendly daylight. Do not affect Dim/Night mode palette. */
html:is([data-bf-theme="light"],:not([data-bf-theme])) .bf-frequent,
html:is([data-bf-theme="light"],:not([data-bf-theme])) .bf-catalog-main,
html:is([data-bf-theme="light"],:not([data-bf-theme])) .bf-category-sidebar,
html:is([data-bf-theme="light"],:not([data-bf-theme])) .bf-product-detail{
  background-color:var(--bf-surface);
}
html:is([data-bf-theme="light"],:not([data-bf-theme])) .bf-frequent-item{
  background:#f3f7fa;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.65);
}
html:is([data-bf-theme="light"],:not([data-bf-theme])) .bf-product-row:hover{
  background:#eaf3f7;
}
/* Third-party license delivery can inject #fff panels even when Woo is dark.
   JS only marks elements with computed near-white background; other status
   colors and copy buttons are left alone. No key data is inspected/transmitted. */
html:is([data-bf-theme="dim"],[data-bf-theme="dark"]) .bf-content .woocommerce-order .bf-order-license-panel [data-bf-license-neutral="1"]{
  background:var(--bf-soft)!important;
  color:var(--bf-ink)!important;
  border-color:var(--bf-border)!important;
  box-shadow:none!important;
}
html:is([data-bf-theme="dim"],[data-bf-theme="dark"]) .bf-content .woocommerce-order .bf-order-license-panel [data-bf-license-neutral="1"] :is(h1,h2,h3,h4,p,strong,small,code,pre,td,th){
  color:var(--bf-ink)!important;
}
html:is([data-bf-theme="dim"],[data-bf-theme="dark"]) .bf-content .woocommerce-order .bf-order-license-panel :is(.license-card,.license-item,.license-row,.key-card,.key-item,.key-row,.bf-license-neutral-surface){
  background:var(--bf-soft)!important;
  color:var(--bf-ink)!important;
  border-color:var(--bf-border)!important;
}
/* Delivery status badges and copy actions keep their own accessible foreground colors. */


/* B8.1: compact, native Woo variation selection on frequent-purchase cards. */
.bf-frequent-item .bf-frequent-variant-form{margin-top:auto;width:100%;min-width:0}
.bf-frequent-item .bf-frequent-variant-form form.variations_form{width:100%;max-width:100%;min-width:0;margin:0;display:flex;flex-direction:column;gap:5px}
.bf-frequent-item .bf-frequent-variant-form table.variations{margin:0!important;width:100%;max-width:100%;display:table;table-layout:auto;border:0!important;background:transparent!important}
.bf-frequent-item .bf-frequent-variant-form table.variations tbody,
.bf-frequent-item .bf-frequent-variant-form table.variations tr{display:block!important;width:100%;background:transparent!important}
.bf-frequent-item .bf-frequent-variant-form table.variations td,
.bf-frequent-item .bf-frequent-variant-form table.variations th{display:block!important;float:none!important;width:100%!important;max-width:100%!important;padding:1px 0!important;border:0!important;background:transparent!important;color:var(--bf-ink)!important}
.bf-frequent-item .bf-frequent-variant-form .variations label{font-size:11px;font-weight:700;color:var(--bf-muted)}
.bf-frequent-item .bf-frequent-variant-form .variations select{width:100%;max-width:100%!important;min-width:0!important;height:36px;min-height:36px;padding:5px 9px;background:var(--bf-input)!important;border:1px solid var(--bf-border)!important;border-radius:8px;color:var(--bf-ink)!important;font-size:12px;white-space:normal}
.bf-frequent-item .bf-frequent-variant-form .reset_variations{font-size:10px;color:var(--bf-primary)!important;margin-left:8px}
.bf-frequent-item .bf-frequent-variant-form .single_variation_wrap{width:100%;min-width:0}
.bf-frequent-item .bf-frequent-variant-form .woocommerce-variation{margin:0;padding:0}
.bf-frequent-item .bf-frequent-variant-form .woocommerce-variation-description{display:none}
.bf-frequent-item .bf-frequent-variant-form .woocommerce-variation-price{font-size:12px;margin:0 0 5px;color:var(--bf-ink)}
.bf-frequent-item .bf-frequent-variant-form .woocommerce-variation-add-to-cart{display:flex;align-items:center;flex-wrap:wrap;gap:6px;width:100%}
.bf-frequent-item .bf-frequent-variant-form .quantity{flex:none;margin:0!important}
.bf-frequent-item .bf-frequent-variant-form input.qty{width:52px!important;min-width:44px;height:35px!important;min-height:35px!important;background:var(--bf-input)!important;color:var(--bf-ink)!important;border:1px solid var(--bf-border)!important;border-radius:8px;font-size:12px}
.bf-frequent-item .bf-frequent-variant-form :is(.single_add_to_cart_button,.bf-btn){width:auto!important;min-height:35px!important;padding:7px 9px!important;border-radius:8px!important;font-size:11px!important;font-weight:700!important;border:1px solid var(--bf-primary)!important;cursor:pointer}
.bf-frequent-item .bf-frequent-variant-form .single_add_to_cart_button{background:var(--bf-primary)!important;color:var(--bf-on-primary)!important}
.bf-frequent-item .bf-frequent-variant-form .bf-btn-secondary{background:var(--bf-primary-tint)!important;color:var(--bf-ink)!important}
.bf-frequent-item .bf-frequent-variant-form button:disabled{opacity:.45;cursor:not-allowed}

/* B8.1: AJAX suggestions no HTML entities, clipping or horizontal scroll. */
.bf-suggestions{overflow-x:hidden;overflow-y:auto;max-width:100%;min-width:0}
.bf-suggestion{min-width:0;gap:10px;white-space:normal;align-items:flex-start}
.bf-suggestion-copy{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
.bf-suggestion-title{min-width:0;overflow-wrap:anywhere;line-height:1.35}
.bf-suggestion-kind,.bf-suggestion-sku{font-size:10px;font-weight:600;color:var(--bf-muted);overflow-wrap:anywhere}
.bf-suggestion-price{min-width:0;max-width:40%;text-align:right;white-space:normal;overflow-wrap:anywhere;line-height:1.3;font-variant-numeric:tabular-nums}
@media(max-width:660px){.bf-suggestion{flex-wrap:wrap}.bf-suggestion-price{max-width:100%;text-align:left}.bf-frequent-grid{grid-template-columns:repeat(1,minmax(0,1fr))}}

/* B8.2: restrained, compact actions in frequent-purchase cards. */
.bf-frequent-item .bf-frequent-license-toggle,
.bf-frequent-item .bf-frequent-cta {
  align-self:flex-start!important;
  display:inline-flex!important;
  width:auto!important;
  max-width:100%!important;
  min-height:31px!important;
  padding:6px 12px!important;
  border:1px solid var(--bf-border)!important;
  border-radius:8px!important;
  background:var(--bf-soft)!important;
  color:var(--bf-ink)!important;
  font-size:11px!important;
  font-weight:730!important;
  line-height:1.3;
  text-align:center;
  box-shadow:none!important;
  letter-spacing:0;
}
.bf-frequent-item .bf-frequent-cta:hover,
.bf-frequent-item .bf-frequent-license-toggle:hover,
.bf-frequent-item .bf-frequent-license-toggle:focus-visible {
  background:var(--bf-primary-tint)!important;
  border-color:var(--bf-primary)!important;
  color:var(--bf-primary)!important;
  transform:none;
}
.bf-frequent-item .bf-frequent-variant-form{width:100%;margin-top:6px}
.bf-frequent-item .bf-frequent-variant-form .single_add_to_cart_button,
.bf-frequent-item .bf-frequent-variant-form .bf-btn {min-height:32px!important;padding:6px 11px!important}
/* B8.2: minimal Telegram shortcut, no bulky extra menu label. */
.bf-telegram-icon{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;min-width:34px;border:1px solid var(--bf-border);border-radius:10px;background:var(--bf-soft);color:var(--bf-primary)}
.bf-telegram-icon svg{width:19px;height:19px}
.bf-telegram-icon:hover{background:var(--bf-primary-tint);color:var(--bf-ink);border-color:var(--bf-primary)}
/* B8.2: existing WooCommerce pages remain native; dashboard gets calmer cards. */
.bf-account-hub{width:100%;min-width:0}
.bf-account-intro h1{font-size:22px;margin:0 0 4px;color:var(--bf-ink)}
.bf-account-intro p{font-size:12px;color:var(--bf-muted);margin:0 0 22px}
.bf-account-layout{display:grid;grid-template-columns:minmax(172px,230px) minmax(0,1fr);align-items:start;gap:22px}
.bf-account-menu{display:flex;flex-direction:column;gap:4px;padding:11px;border:1px solid var(--bf-border);border-radius:13px;background:var(--bf-soft)}
.bf-account-menu a{padding:9px 11px;font-size:12px;font-weight:650;border-radius:8px;line-height:1.35;color:var(--bf-ink)}
.bf-account-menu a:hover,.bf-account-menu a:focus-visible{background:var(--bf-primary-tint);color:var(--bf-primary)}
.bf-account-dashboard{min-width:0}
.bf-account-dashboard h2{font-size:15px;color:var(--bf-ink);margin:2px 0 13px}
.bf-account-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.bf-account-card{min-width:0;min-height:112px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;padding:17px 10px;background:var(--bf-soft);border:1px solid var(--bf-border);border-radius:12px;color:var(--bf-ink);font-size:12px;text-align:center;font-weight:690;transition:border-color .15s,background .15s}
.bf-account-card:hover,.bf-account-card:focus-visible{color:var(--bf-primary);background:var(--bf-primary-tint);border-color:var(--bf-primary)}
.bf-account-card-icon{font-size:23px;line-height:1.1;color:var(--bf-muted);font-weight:500}
.bf-account-back{display:inline-block;margin-bottom:12px;color:var(--bf-primary);font-size:12px;font-weight:700}
@media(max-width:790px){.bf-account-layout{grid-template-columns:1fr}.bf-account-menu{flex-direction:row;overflow-x:auto;white-space:nowrap}.bf-account-menu a{flex:none}.bf-account-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:370px){.bf-account-card{min-height:95px;padding:12px 7px}.bf-account-grid{gap:7px}.bf-account-card-icon{font-size:19px}}
@media(prefers-reduced-motion:reduce){.bf-account-card{transition:none}}

.bf-account-address-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.bf-account-address{min-width:0;background:var(--bf-soft);border:1px solid var(--bf-border);border-radius:12px;padding:16px;overflow-wrap:anywhere}
.bf-account-address h2{font-size:14px;margin:0 0 11px}
.bf-account-address p{font-size:12px;margin:10px 0}
.bf-account-address a{color:var(--bf-primary);font-weight:700}
@media(max-width:610px){.bf-account-address-grid{grid-template-columns:1fr}}


/* B14: premium account, order and wallet refinements. */
.bf-account-menu{
  background:linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,.02)),var(--bf-soft);
  box-shadow:0 18px 32px rgba(8,28,45,.08);
}
.bf-account-menu a{
  position:relative;
  border:1px solid transparent;
  transition:transform .15s,border-color .18s,background .18s,color .18s,box-shadow .18s;
}
.bf-account-menu a:hover,.bf-account-menu a:focus-visible{
  transform:translateY(-1px);
  box-shadow:0 10px 20px rgba(11,34,52,.08);
}
.bf-account-card{
  background:linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,.02)),var(--bf-soft);
  box-shadow:0 12px 28px rgba(8,28,45,.09);
  transition:transform .18s,border-color .18s,background .18s,box-shadow .18s,color .18s;
}
.bf-account-card:hover,.bf-account-card:focus-visible{
  transform:translateY(-2px);
  box-shadow:0 18px 34px rgba(8,28,45,.14);
}
.bf-account-card-icon{
  display:grid;place-items:center;width:42px;height:42px;border-radius:14px;
  background:rgba(116,220,242,.10);
}
.bf-content .woocommerce .woocommerce-order{
  background:linear-gradient(145deg,rgba(255,255,255,.03),rgba(255,255,255,.01));
}
.bf-content .woocommerce .woocommerce-order .woocommerce-order-overview,
.bf-content .woocommerce .woocommerce-order .woocommerce-order-details,
.bf-content .woocommerce .woocommerce-order .bf-order-billing-details,
.bf-content .woocommerce .woocommerce-order .bf-order-license-panel{
  box-shadow:0 18px 34px rgba(9,28,44,.10);
}
.bf-content .woocommerce-order .bf-order-license-panel{
  background:linear-gradient(180deg,rgba(255,255,255,.05),rgba(255,255,255,.02)),var(--bf-surface)!important;
}
.bf-content .woocommerce-order .bf-order-license-panel :is(.license-card,.license-item,.license-row,.key-card,.key-item,.key-row,.bf-license-neutral-surface,[data-bf-license-neutral="1"]){
  border-radius:12px!important;
}
.bf-content .woocommerce-order .bf-order-license-panel :is(.license-card,.license-item,.license-row,.key-card,.key-item,.key-row){
  border:1px solid var(--bf-border)!important;
}
html:is([data-bf-theme="dim"],[data-bf-theme="dark"]) .bf-account-menu,
html:is([data-bf-theme="dim"],[data-bf-theme="dark"]) .bf-account-card,
html:is([data-bf-theme="dim"],[data-bf-theme="dark"]) .bf-content .woocommerce .woocommerce-order .woocommerce-order-overview,
html:is([data-bf-theme="dim"],[data-bf-theme="dark"]) .bf-content .woocommerce .woocommerce-order .woocommerce-order-details,
html:is([data-bf-theme="dim"],[data-bf-theme="dark"]) .bf-content .woocommerce .woocommerce-order .bf-order-billing-details,
html:is([data-bf-theme="dim"],[data-bf-theme="dark"]) .bf-content .woocommerce .woocommerce-order .bf-order-license-panel{
  box-shadow:0 18px 36px rgba(0,0,0,.22);
}
html:is([data-bf-theme="dim"],[data-bf-theme="dark"]) .bf-content .woocommerce-order .bf-order-license-panel,
html:is([data-bf-theme="dim"],[data-bf-theme="dark"]) .bf-content .woocommerce-order .bf-order-license-panel [data-bf-license-neutral="1"],
html:is([data-bf-theme="dim"],[data-bf-theme="dark"]) .bf-content .woocommerce-order .bf-order-license-panel :is(.license-card,.license-item,.license-row,.key-card,.key-item,.key-row,.bf-license-neutral-surface){
  background:linear-gradient(180deg,rgba(255,255,255,.03),rgba(255,255,255,.01)),var(--bf-soft)!important;
}

/* B15: restrained premium order delivery in Dim and Night modes.
 * Does not style statuses or action buttons: third-party status semantics remain intact. */
html:is([data-bf-theme="dim"],[data-bf-theme="dark"]) .bf-content .woocommerce-order .bf-order-license-panel {
  background:var(--bf-surface)!important;
  border:1px solid var(--bf-border)!important;
  box-shadow:0 14px 32px rgba(0,0,0,.20)!important;
}
html:is([data-bf-theme="dim"],[data-bf-theme="dark"]) .bf-content .woocommerce-order .bf-order-license-panel [data-bf-license-neutral="1"] {
  background:var(--bf-soft)!important;
  color:var(--bf-ink)!important;
  border-color:var(--bf-border)!important;
  box-shadow:none!important;
}
html:is([data-bf-theme="dim"],[data-bf-theme="dark"]) .bf-content .woocommerce-order .bf-order-license-panel [data-bf-license-neutral="1"] :is(h1,h2,h3,h4,p,strong,small,code,pre,td,th,span):not([class*="status"]):not([class*="badge"]) {
  color:var(--bf-ink)!important;
}
html:is([data-bf-theme="dim"],[data-bf-theme="dark"]) .bf-content .woocommerce-order .bf-order-license-panel :is(a,[class*="copy"],button) {
  font-weight:650;
}

/* B10 - ten-language dropdown: intrinsic width, safe keyboard/touch navigation. */
.bf-header-actions .bf-languages{position:relative;display:block;flex:0 0 auto;min-width:0;z-index:80;font-size:12px;white-space:normal}
.bf-language-menu{position:relative}
.bf-language-menu>summary{display:inline-flex;align-items:center;justify-content:space-between;gap:7px;list-style:none;min-height:38px;padding:8px 11px;border:1px solid var(--bf-border);border-radius:10px;background:var(--bf-surface);color:var(--bf-ink);font-weight:750;cursor:pointer;max-width:160px}
.bf-language-menu>summary::-webkit-details-marker{display:none}
.bf-language-menu>summary::after{content:'⌄';font-size:16px;line-height:1;color:var(--bf-muted)}
.bf-language-menu[open]>summary,.bf-language-menu>summary:focus-visible{border-color:var(--bf-primary);box-shadow:0 0 0 3px var(--bf-primary-tint)}
.bf-language-current{overflow:hidden;text-overflow:ellipsis;min-width:0;white-space:nowrap}
.bf-language-list{position:absolute;inset-inline-end:0;top:calc(100% + 8px);width:min(244px,calc(100vw - 28px));max-height:min(400px,70vh);overflow:auto;padding:7px;border-radius:12px;border:1px solid var(--bf-border);background:var(--bf-surface);box-shadow:0 16px 38px rgba(15,44,70,.19);z-index:95}
.bf-language-list a{display:flex;justify-content:space-between;align-items:center;gap:10px;color:var(--bf-ink);font-size:13px;font-weight:600;min-height:38px;padding:8px 12px;border-radius:8px;text-decoration:none;text-align:start}
.bf-language-list a:hover,.bf-language-list a:focus-visible{background:var(--bf-soft);color:var(--bf-primary)}
.bf-language-list a[aria-current=true]{background:var(--bf-primary-tint);font-weight:800;color:var(--bf-primary)}
.bf-language-code{font-size:10px;letter-spacing:.04em;color:var(--bf-muted);direction:ltr;unicode-bidi:isolate}
html[dir=rtl] body{text-align:start}
html[dir=rtl] .bf-search svg{margin-left:0;margin-right:15px}
html[dir=rtl] .bf-search button{border-radius:10px 0 0 10px}
html[dir=rtl] .bf-brand .custom-logo{object-position:right center}
html[dir=rtl] .bf-category-item .bf-category-list{padding-left:0;padding-right:13px;margin-left:0;margin-right:3px;border-left:0;border-right:1px solid var(--bf-border)}
html[dir=rtl] .bf-price,html[dir=rtl] .bf-list-headings span:last-child{text-align:left}
html[dir=rtl] .bf-suggestion-price,html[dir=rtl] .bf-sku,html[dir=rtl] .bf-cart-count{direction:ltr;unicode-bidi:isolate}
html[dir=rtl] .bf-product-order{justify-content:flex-start}
html[dir=rtl] .bf-frequent-cta{text-align:right}
@media(max-width:740px){.bf-header-actions .bf-languages{order:2}.bf-language-menu>summary{max-width:142px;min-height:36px}}
@media(max-width:390px){.bf-language-menu>summary{max-width:115px;padding:7px 9px}.bf-language-list{width:min(235px,calc(100vw - 28px))}}

/* B11: contrast repair for near-white license cards even on account order views.
 * Applied only to the recognized license panel and neutral backgrounds.
 * Colored status badges, buttons, keys and copy fields are not restyled. */
.bf-order-license-panel [data-bf-license-neutral="1"]{
  background:var(--bf-soft)!important;
  color:var(--bf-ink)!important;
  border-color:var(--bf-border)!important;
}
.bf-order-license-panel [data-bf-license-neutral="1"] :is(h1,h2,h3,h4,p,strong,small){
  color:var(--bf-ink)!important;
}
.bf-order-license-panel [data-bf-license-neutral="1"] span:not([class*="status"]):not([class*="badge"]):not([class*="copy"]){
  color:var(--bf-ink)!important;
}
.bf-order-license-panel.bf-license-i18n-ready{overflow-wrap:anywhere}

/* DASH-RC01: scoped buyer analytics. Semantic colors follow Light / Dim / Night. */
.bf-dash{min-width:0;margin:0 0 26px;color:var(--bf-ink)}
.bf-dash-top{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:14px;margin-bottom:15px}
.bf-dash-top h2{font-size:clamp(19px,2vw,25px);line-height:1.2;margin:4px 0 7px;letter-spacing:-.025em}
.bf-dash-top p{color:var(--bf-muted);font-size:12px;margin:0;max-width:620px}
.bf-dash-eyebrow{font-size:10px!important;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--bf-primary)!important}
.bf-dash-period{display:flex;gap:4px;align-items:center;flex-wrap:wrap;border:1px solid var(--bf-border);border-radius:11px;padding:4px;background:var(--bf-soft)}
.bf-dash-period a{font-size:12px;padding:7px 11px;border-radius:7px;font-weight:750;color:var(--bf-muted)}
.bf-dash-period a:hover,.bf-dash-period a:focus-visible{color:var(--bf-primary);background:var(--bf-primary-tint)}
.bf-dash-period a.is-active{background:var(--bf-primary);color:var(--bf-on-primary)}
.bf-dash-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:12px}
.bf-dash-metric{display:grid;align-content:start;gap:3px;min-width:0;position:relative;overflow:hidden;padding:18px 13px;background:var(--bf-surface);border:1px solid var(--bf-border);border-radius:14px;box-shadow:var(--bf-shadow)}
.bf-dash-metric-icon{display:grid;place-items:center;align-self:start;width:28px;height:28px;border-radius:9px;background:var(--bf-primary-tint);color:var(--bf-primary);font-size:17px;line-height:1}
.bf-dash-metric-label{font-size:11px;line-height:1.3;color:var(--bf-muted);font-weight:700;overflow-wrap:anywhere;margin-top:8px}
.bf-dash-metric strong{font-size:clamp(19px,2.2vw,25px);font-variant-numeric:tabular-nums;letter-spacing:-.025em;color:var(--bf-ink);line-height:1.2}
.bf-dash-metric-hint{font-size:10px;line-height:1.4;color:var(--bf-muted);overflow-wrap:anywhere}
.bf-dash-panels{display:grid;grid-template-columns:minmax(0,1.38fr) minmax(0,1fr);gap:12px;margin-bottom:12px}
.bf-dash-panel{min-width:0;border:1px solid var(--bf-border);border-radius:14px;background:var(--bf-surface);padding:16px;box-shadow:var(--bf-shadow)}
.bf-dash-panel h3{font-size:14px;line-height:1.4;color:var(--bf-ink);margin:0}
.bf-dash-panel-head{display:flex;justify-content:space-between;align-items:center;gap:10px}
.bf-dash-panel-head a{font-size:11px;font-weight:750;color:var(--bf-primary)}
.bf-dash-note{font-size:11px!important;color:var(--bf-muted);margin:3px 0 14px!important}
.bf-dash-trend{font-weight:800;font-size:12px;color:var(--bf-primary);white-space:nowrap}
.bf-dash-trend.is-down{color:var(--bf-negative)}
.bf-dash-chart-wrap{padding:0 0 2px;margin-top:12px;min-width:0}
.bf-dash-bars{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(var(--bf-dash-bars),minmax(4px,1fr));align-items:end;gap:clamp(2px,.45vw,6px);height:148px;border-bottom:1px solid var(--bf-border)}
.bf-dash-bar{min-width:0;height:100%;display:flex;align-items:flex-end;justify-content:center;margin:0;padding:0}
.bf-dash-bar-fill{display:block;width:100%;max-width:20px;min-height:0;border-radius:4px 4px 0 0;background:var(--bf-primary);opacity:.80;transition:opacity .15s}
.bf-dash-bar-fill:hover,.bf-dash-bar-fill:focus{opacity:1}
.bf-dash-chart-axis{display:flex;justify-content:space-between;color:var(--bf-muted);font-size:10px;margin-top:9px}
.bf-dash-status{margin:10px 0}
.bf-dash-status-label{display:flex;justify-content:space-between;gap:12px;align-items:center;font-size:12px;color:var(--bf-muted)}
.bf-dash-status-label strong{font-variant-numeric:tabular-nums;color:var(--bf-ink)}
.bf-dash-track{width:100%;height:8px;margin-top:6px;overflow:hidden;border-radius:8px;background:var(--bf-soft);border:1px solid var(--bf-border)}
.bf-dash-track-fill{display:block;height:100%;background:var(--bf-primary);border-radius:8px}
.bf-dash-status-waiting{background:#c39348}.bf-dash-status-refunded{background:#a873d7}.bf-dash-status-failed{background:#bc5d65}.bf-dash-status-other{background:#8191a0}
.bf-dash-orders-scroll{width:100%;max-width:100%;overflow-x:auto}
.bf-dash-order-table{width:100%;border-collapse:collapse;text-align:start;font-size:12px;line-height:1.45;min-width:440px}
.bf-dash-order-table :is(th,td){padding:10px 8px;border-bottom:1px solid var(--bf-border);text-align:start;overflow-wrap:anywhere}
.bf-dash-order-table th{color:var(--bf-muted);font-size:10px;letter-spacing:.03em;text-transform:uppercase}
.bf-dash-order-table td:first-child{font-weight:750}.bf-dash-order-table td a{color:var(--bf-primary)}
.bf-dash-order-status{display:inline-block;padding:4px 8px;background:var(--bf-soft);border-radius:7px;white-space:nowrap;font-size:11px}
.bf-dash-footnote{font-size:10px!important;line-height:1.55;color:var(--bf-muted);margin:11px 0 0!important}
.bf-dash-empty{padding:18px;background:var(--bf-soft);border:1px solid var(--bf-border);border-radius:10px;font-size:12px;color:var(--bf-muted)}
html:is([data-bf-theme="dim"],[data-bf-theme="dark"]) .bf-dash-metric,html:is([data-bf-theme="dim"],[data-bf-theme="dark"]) .bf-dash-panel{box-shadow:0 15px 32px rgba(0,0,0,.14)}
.bf-dash a:focus-visible,.bf-dash-orders-scroll:focus-visible{outline:2px solid var(--bf-primary);outline-offset:3px}
@media(max-width:1100px){.bf-dash-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.bf-dash-panels{grid-template-columns:1fr}}
@media(max-width:560px){.bf-dash-metric{padding:13px 11px}.bf-dash-panel{padding:13px}.bf-dash-bars{height:115px}.bf-dash-top{align-items:flex-start}}
@media(max-width:340px){.bf-dash-metrics{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.bf-dash-bar-fill{transition:none}}

/* DASH-RC02 — premium buyer control center, fully scoped to account dashboard. */
.bf-dash{
  --bf-dash-accent:#6755e9;
  --bf-dash-accent-soft:#f0edff;
  --bf-dash-accent-ink:#5142cf;
  --bf-dash-success:#146f52;
  --bf-dash-warning:#885517;
  --bf-dash-purple:#7140a3;
  --bf-dash-error:#a82f50;
  --bf-dash-neutral:#8697ad;
  --bf-dash-inner:#fff;
  color:var(--bf-ink);
  margin:0 0 28px;
  min-width:0;
}
html:is([data-bf-theme="dim"],[data-bf-theme="dark"]) .bf-dash{
  --bf-dash-accent:#aea6ff;
  --bf-dash-accent-soft:#3a3c66;
  --bf-dash-accent-ink:#c3bdff;
  --bf-dash-success:#67d9aa;
  --bf-dash-warning:#ebbd72;
  --bf-dash-purple:#d2aafa;
  --bf-dash-error:#fb9daa;
  --bf-dash-neutral:#9aafc4;
  --bf-dash-inner:var(--bf-surface);
}
.bf-dash-hero{
  display:flex;align-items:stretch;justify-content:space-between;gap:clamp(20px,4vw,48px);
  position:relative;overflow:hidden;isolation:isolate;
  background:linear-gradient(112deg,#4547d5 0%,#624be4 48%,#8448e3 100%);
  color:#fff;border:1px solid rgba(233,224,255,.25);
  padding:clamp(22px,3.4vw,37px) clamp(20px,3.6vw,42px);
  border-radius:20px;box-shadow:0 14px 30px rgba(71,59,191,.18);
}
.bf-dash-hero::before{content:"";position:absolute;inset:-120px auto auto 20%;width:400px;height:400px;pointer-events:none;border-radius:50%;background:radial-gradient(circle,rgba(255,255,255,.14),rgba(255,255,255,0) 70%);z-index:-1}
.bf-dash-hero::after{content:"";position:absolute;bottom:-140px;right:-65px;width:350px;height:350px;pointer-events:none;border:60px solid rgba(255,255,255,.05);border-radius:50%;z-index:-1}
.bf-dash-hero-content{min-width:0;flex:1}
.bf-dash-hero-eyebrow{display:inline-flex;align-items:center;gap:8px;font-size:10px;font-weight:850;letter-spacing:.14em;text-transform:uppercase;color:#f0ebff}
.bf-dash-hero-eyebrow>span{font-size:14px;color:#fae8b0}
.bf-dash-hero h2{font-size:clamp(22px,2.4vw,33px);line-height:1.18;letter-spacing:-.035em;color:#fff;margin:9px 0 10px;overflow-wrap:anywhere}
.bf-dash-hero h2>span{color:#fff}
.bf-dash-hero p{font-size:clamp(12px,1.1vw,14px);line-height:1.6;color:#f0eaff;margin:0 0 10px;max-width:570px}
.bf-dash-hero-range{display:inline-block;font-size:11px;font-weight:650;color:#fbfaff;font-variant-numeric:tabular-nums;border:1px solid rgba(255,255,255,.25);background:rgba(255,255,255,.1);border-radius:20px;padding:5px 11px;unicode-bidi:isolate;direction:ltr}
.bf-dash-hero-side{flex:0 0 158px;align-self:center;text-align:center;padding:17px 13px;border:1px solid rgba(255,255,255,.23);border-radius:15px;background:rgba(255,255,255,.13);backdrop-filter:blur(8px);display:flex;flex-direction:column;align-items:center;gap:5px;min-width:0}
.bf-dash-hero-side span{font-size:11px;font-weight:600;color:#f2ecff}
.bf-dash-hero-side strong{font-size:clamp(28px,3vw,40px);line-height:1;font-variant-numeric:tabular-nums;letter-spacing:-.04em;color:#fff;overflow-wrap:anywhere}
.bf-dash-hero-side small{font-size:10px;color:#f3ebff}
.bf-dash-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin:18px 0 14px;position:relative;z-index:7}
.bf-dash .bf-dash-period{border:0;background:var(--bf-soft);padding:5px;gap:4px;border-radius:11px;display:inline-flex;max-width:100%;flex-wrap:wrap}
.bf-dash .bf-dash-period a{font-size:12px;padding:8px 14px;min-height:34px;display:inline-flex;align-items:center;justify-content:center;border-radius:8px;font-weight:750;color:var(--bf-muted)}
.bf-dash .bf-dash-period a:hover,.bf-dash .bf-dash-period a:focus-visible{color:var(--bf-dash-accent-ink);background:var(--bf-dash-accent-soft)}
.bf-dash .bf-dash-period a.is-active{background:var(--bf-dash-accent);color:#fff;box-shadow:0 4px 12px rgba(80,67,188,.15)}
html:is([data-bf-theme="dim"],[data-bf-theme="dark"]) .bf-dash .bf-dash-period a.is-active{background:var(--bf-dash-accent-soft);color:#fff}
.bf-dash-customizer{position:relative;display:block;max-width:100%;margin-inline-start:auto}
.bf-dash-customizer[hidden]{display:none!important}
.bf-dash-customizer>summary{display:flex;align-items:center;gap:8px;border:1px solid var(--bf-border);padding:9px 13px;background:var(--bf-surface);color:var(--bf-ink);font-weight:750;font-size:12px;cursor:pointer;border-radius:10px;list-style:none;min-height:36px}
.bf-dash-customizer>summary::-webkit-details-marker{display:none}
.bf-dash-customizer>summary svg{width:17px;height:17px;color:var(--bf-dash-accent)}
.bf-dash-customizer[open]>summary{border-color:var(--bf-dash-accent);box-shadow:0 0 0 2px var(--bf-dash-accent-soft)}
.bf-dash-customizer-content{position:absolute;z-index:20;inset-inline-end:0;top:calc(100% + 7px);width:min(354px,calc(100vw - 30px));min-width:0;background:var(--bf-surface);border:1px solid var(--bf-border);border-radius:15px;padding:14px;box-shadow:0 18px 44px rgba(12,28,52,.2)}
.bf-dash-customizer-content>p:first-child{color:var(--bf-muted);font-size:12px;margin:2px 0 12px}
.bf-dash-customizer-list{display:grid;gap:6px}
.bf-dash-customizer-row{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:9px;border-radius:10px;background:var(--bf-soft);border:1px solid var(--bf-border);min-width:0}
.bf-dash-customizer-row label{display:flex;align-items:center;gap:9px;min-width:0;color:var(--bf-ink);font-size:12px;font-weight:700;cursor:pointer;overflow-wrap:anywhere}
.bf-dash-customizer-row input{accent-color:var(--bf-dash-accent);width:16px;height:16px;flex:none}
.bf-dash-control-arrows{display:flex;gap:5px;flex:none}
.bf-dash-control-arrows button,.bf-dash-reset{cursor:pointer;border:1px solid var(--bf-border);background:var(--bf-surface);color:var(--bf-ink);border-radius:8px;min-height:32px;min-width:32px;font-size:15px;font-weight:700}
.bf-dash-control-arrows button:disabled{opacity:.35;cursor:not-allowed}
.bf-dash-reset{padding:7px 11px;font-size:12px;margin-top:10px}
.bf-dash-feedback{min-height:15px!important;margin:7px 0 0!important;color:var(--bf-muted);font-size:11px!important}
.bf-dash-shortcuts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0 0 16px}
.bf-dash-shortcuts a{display:flex;align-items:center;gap:11px;min-width:0;min-height:66px;padding:12px 13px;border-radius:13px;border:1px solid var(--bf-border);background:var(--bf-surface);box-shadow:var(--bf-shadow);color:var(--bf-ink);font-size:12px;font-weight:750;overflow-wrap:anywhere;transition:transform .16s,border-color .16s,box-shadow .16s}
.bf-dash-shortcuts a:hover,.bf-dash-shortcuts a:focus-visible{color:var(--bf-dash-accent-ink);border-color:var(--bf-dash-accent);transform:translateY(-1px);box-shadow:0 8px 20px rgba(66,54,156,.12)}
.bf-dash-shortcut-icon{display:grid;place-items:center;width:38px;height:38px;flex:none;border-radius:11px;color:var(--bf-dash-accent-ink);background:var(--bf-dash-accent-soft)}
.bf-dash-shortcuts a:nth-child(2) .bf-dash-shortcut-icon{background:rgba(30,130,184,.1);color:#277fa5}
.bf-dash-shortcuts a:nth-child(3) .bf-dash-shortcut-icon{background:rgba(30,156,108,.1);color:var(--bf-dash-success)}
.bf-dash-shortcuts a:nth-child(4) .bf-dash-shortcut-icon{background:rgba(193,134,64,.11);color:var(--bf-dash-warning)}
.bf-dash-shortcuts a>span:nth-child(2){flex:1;min-width:0}
.bf-dash-shortcuts a>svg:last-child{width:15px;height:15px;flex:none;color:var(--bf-muted)}
.bf-dash-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;margin:0 0 14px}
.bf-dash .bf-dash-metric{min-width:0;min-height:137px;padding:18px 18px 16px;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:34px auto auto auto;align-content:start;gap:0;border:1px solid var(--bf-border);border-radius:15px;background:var(--bf-surface);box-shadow:0 6px 19px rgba(20,32,66,.055);transition:border-color .16s,transform .16s}
.bf-dash .bf-dash-metric:hover{border-color:var(--bf-dash-accent);transform:translateY(-1px)}
.bf-dash .bf-dash-metric-icon{grid-column:2;grid-row:1;width:34px;height:34px;display:grid;place-items:center;background:var(--bf-dash-accent-soft);color:var(--bf-dash-accent-ink);border-radius:10px}
.bf-dash .bf-dash-metric--success .bf-dash-metric-icon{color:var(--bf-dash-success);background:rgba(25,154,102,.1)}
.bf-dash .bf-dash-metric--waiting .bf-dash-metric-icon{color:var(--bf-dash-warning);background:rgba(188,121,33,.12)}
.bf-dash .bf-dash-metric-icon svg{width:19px;height:19px}
.bf-dash .bf-dash-metric-label{grid-row:2;grid-column:1/-1;font-size:11px;color:var(--bf-muted);letter-spacing:.012em;font-weight:760;line-height:1.4;margin:5px 0 5px;overflow-wrap:anywhere}
.bf-dash .bf-dash-metric-value{grid-row:3;grid-column:1/-1;font-size:clamp(20px,2.3vw,28px);font-weight:850;letter-spacing:-.04em;line-height:1.2;color:var(--bf-ink);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.bf-dash .bf-dash-metric-hint{grid-row:4;grid-column:1/-1;font-size:10px;line-height:1.45;color:var(--bf-muted);margin-top:8px;overflow-wrap:anywhere}
.bf-dash-widgets{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));align-items:start;gap:13px}
.bf-dash-widgets>.bf-dash-widget{min-width:0;min-height:290px;margin:0;background:var(--bf-surface);border:1px solid var(--bf-border);border-radius:17px;padding:19px 20px;box-shadow:var(--bf-shadow)}
.bf-dash-widget[hidden]{display:none!important}
.bf-dash-widget--trend{grid-column:span 7}
.bf-dash-widget--status{grid-column:span 5}
.bf-dash-widget--recent{grid-column:1/-1;min-height:160px!important}
.bf-dash .bf-dash-panel-head{display:flex;align-items:center;justify-content:space-between;gap:15px}
.bf-dash .bf-dash-panel-head h3{font-size:clamp(14px,1.3vw,16px);font-weight:790;color:var(--bf-ink);margin:4px 0 0;line-height:1.3}
.bf-dash-panel-kicker{font-size:9px;font-weight:840;color:var(--bf-dash-accent-ink);letter-spacing:.12em}
.bf-dash-mini-label{color:var(--bf-muted);font-size:10px;font-weight:700;padding:5px 10px;background:var(--bf-soft);border:1px solid var(--bf-border);border-radius:20px;white-space:nowrap}
.bf-dash .bf-dash-note{font-size:11px!important;color:var(--bf-muted);margin:7px 0 12px!important;line-height:1.5}
.bf-dash-chart-wrap{margin-top:7px}
.bf-dash-chart-grid{background:repeating-linear-gradient(to top,transparent 0,transparent calc(25% - 1px),var(--bf-border) calc(25% - 1px),var(--bf-border) 25%);border-radius:7px 7px 0 0}
.bf-dash .bf-dash-bars{list-style:none;display:grid;grid-template-columns:repeat(var(--bf-dash-bars),minmax(3px,1fr));gap:clamp(3px,.5vw,7px);height:155px;padding:0 2px;margin:0;align-items:end;border-bottom:1px solid var(--bf-border)}
.bf-dash .bf-dash-bar{display:flex;align-items:flex-end;justify-content:stretch;height:100%;min-width:0;margin:0;padding:0}
.bf-dash .bf-dash-bar-fill{width:100%;max-width:28px;min-height:2px;display:block;margin-inline:auto;border-radius:5px 5px 0 0;background:linear-gradient(180deg,#9e80ff,var(--bf-dash-accent));opacity:.9;cursor:default;transition:opacity .15s,filter .15s;outline-offset:3px}
.bf-dash .bf-dash-bar-fill:hover,.bf-dash .bf-dash-bar-fill:focus-visible{opacity:1;filter:brightness(1.12);outline:2px solid var(--bf-dash-accent)}
.bf-dash .bf-dash-chart-axis{display:flex;justify-content:space-between;gap:10px;margin-top:9px;color:var(--bf-muted);font-size:10px;font-variant-numeric:tabular-nums}
.bf-dash-chart-tip{margin:11px 0 0!important;color:var(--bf-muted);min-height:18px;font-size:11px!important}
.bf-dash-chart-data{margin-top:8px;font-size:11px;color:var(--bf-muted)}
.bf-dash-chart-data>summary{cursor:pointer;display:inline-block;color:var(--bf-dash-accent-ink);font-weight:750;padding:4px 0}
.bf-dash-data-scroll{max-height:220px;max-width:100%;overflow:auto;margin-top:10px}
.bf-dash-data-scroll table{width:100%;border-collapse:collapse;text-align:start;color:var(--bf-ink);font-variant-numeric:tabular-nums}
.bf-dash-data-scroll :is(th,td){border-bottom:1px solid var(--bf-border);padding:6px;text-align:start}
.bf-dash-data-scroll thead th{color:var(--bf-muted);font-size:10px}
.bf-dash-status-layout{display:grid;grid-template-columns:minmax(106px,.9fr) minmax(0,1.1fr);align-items:center;gap:19px;margin:17px 0 4px}
.bf-dash-donut{width:min(158px,100%);aspect-ratio:1;border-radius:50%;display:grid;place-items:center;margin-inline:auto;background:conic-gradient(var(--bf-dash-success) 0 var(--bf-dash-stop-1),var(--bf-dash-warning) var(--bf-dash-stop-1) var(--bf-dash-stop-2),var(--bf-dash-purple) var(--bf-dash-stop-2) var(--bf-dash-stop-3),var(--bf-dash-error) var(--bf-dash-stop-3) var(--bf-dash-stop-4),var(--bf-dash-neutral) var(--bf-dash-stop-4) var(--bf-dash-stop-5),var(--bf-soft) var(--bf-dash-stop-5) 100%)}
.bf-dash-donut-middle{width:73%;height:73%;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;background:var(--bf-surface);border:4px solid var(--bf-surface);box-shadow:0 1px 2px rgba(0,0,0,.06);text-align:center}
.bf-dash-donut-middle strong{font-size:clamp(19px,2vw,25px);font-weight:850;line-height:1.2;color:var(--bf-ink);font-variant-numeric:tabular-nums;max-width:100%;overflow-wrap:anywhere}
.bf-dash-donut-middle span{font-size:10px;color:var(--bf-muted)}
.bf-dash-status-list{min-width:0}
.bf-dash .bf-dash-status{margin:8px 0}
.bf-dash .bf-dash-status-label{display:flex;align-items:center;justify-content:space-between;gap:8px;line-height:1.4;font-size:11px;color:var(--bf-muted)}
.bf-dash .bf-dash-status-label>span{display:flex;align-items:center;gap:7px;min-width:0;overflow-wrap:anywhere}
.bf-dash .bf-dash-status-label strong{font-weight:850;color:var(--bf-ink);font-variant-numeric:tabular-nums}
.bf-dash-status-dot{display:inline-block;width:8px;height:8px;flex:none;border-radius:50%}
.bf-dash .bf-dash-track{height:6px;margin-top:5px;background:var(--bf-soft);border:0;border-radius:9px;overflow:hidden}
.bf-dash .bf-dash-track-fill{height:100%;display:block;border-radius:9px;background:var(--bf-dash-success)}
.bf-dash .bf-dash-status-paid{background:var(--bf-dash-success)}
.bf-dash .bf-dash-status-waiting{background:var(--bf-dash-warning)}
.bf-dash .bf-dash-status-refunded{background:var(--bf-dash-purple)}
.bf-dash .bf-dash-status-failed{background:var(--bf-dash-error)}
.bf-dash .bf-dash-status-other{background:var(--bf-dash-neutral)}
.bf-dash-view-all{display:inline-flex;gap:5px;align-items:center;font-size:11px;font-weight:770;color:var(--bf-dash-accent-ink)}
.bf-dash-view-all svg{width:15px;height:15px}
.bf-dash .bf-dash-orders-scroll{width:100%;max-width:100%;overflow-x:auto;margin-top:12px}
.bf-dash .bf-dash-order-table{border-collapse:collapse;width:100%;min-width:530px;line-height:1.5;text-align:start;font-size:12px}
.bf-dash .bf-dash-order-table th{font-size:10px;font-weight:820;color:var(--bf-muted);letter-spacing:.045em;text-transform:uppercase;background:var(--bf-soft)}
.bf-dash .bf-dash-order-table :is(th,td){padding:11px 10px;border-bottom:1px solid var(--bf-border);text-align:start;overflow-wrap:anywhere}
.bf-dash .bf-dash-order-table tbody tr:hover{background:var(--bf-soft)}
.bf-dash .bf-dash-order-table td:nth-child(2){max-width:400px}
.bf-dash .bf-dash-order-table td a{color:var(--bf-dash-accent-ink);font-weight:800}
.bf-dash-order-status{display:inline-block;background:var(--bf-soft);border:1px solid var(--bf-border);border-radius:20px;padding:4px 10px;color:var(--bf-ink);font-size:10px;font-weight:760;white-space:nowrap}
.bf-dash-order-status--completed,.bf-dash-order-status--processing{background:rgba(21,148,91,.09);color:var(--bf-dash-success)}
.bf-dash-order-status--on-hold,.bf-dash-order-status--pending{background:rgba(190,135,41,.1);color:var(--bf-dash-warning)}
.bf-dash-order-status--refunded{background:rgba(149,94,196,.1);color:var(--bf-dash-purple)}
.bf-dash-order-status--failed,.bf-dash-order-status--cancelled{background:rgba(198,80,104,.09);color:var(--bf-dash-error)}
.bf-dash .bf-dash-footnote{font-size:10px!important;line-height:1.55;color:var(--bf-muted);margin:15px 0 0!important}
.bf-dash .bf-dash-empty{border:1px solid var(--bf-border);background:var(--bf-soft);border-radius:14px;padding:20px;color:var(--bf-muted);font-size:12px}
.bf-dash :is(a,button,input,summary,[tabindex]):focus-visible{outline:2px solid var(--bf-dash-accent);outline-offset:3px}
html:is([data-bf-theme="dim"],[data-bf-theme="dark"]) .bf-dash .bf-dash-hero{background:linear-gradient(120deg,#3438a3 0%,#4a35ad 62%,#6138a7 100%);border-color:#7d6bca;box-shadow:0 14px 27px rgba(0,0,0,.26)}
html:is([data-bf-theme="dim"],[data-bf-theme="dark"]) .bf-dash .bf-dash-shortcuts a:nth-child(2) .bf-dash-shortcut-icon{color:#8bd2fa}
html:is([data-bf-theme="dim"],[data-bf-theme="dark"]) .bf-dash .bf-dash-shortcuts a:hover{background:var(--bf-soft)}
.bf-account-menu a{display:flex;align-items:center;gap:9px;min-width:0}
.bf-account-menu-icon{width:19px;height:19px;flex:none;display:inline-grid;place-items:center;color:var(--bf-muted)}
.bf-account-menu-icon svg{width:18px;height:18px}
.bf-account-menu a.is-active,.bf-account-menu a[aria-current="page"]{color:var(--bf-dash-accent-ink,#6755e9);background:var(--bf-primary-tint);border-color:var(--bf-border);font-weight:800}
.bf-account-card-icon svg{width:23px;height:23px}
@media(min-width:1440px){.bf-dash-shortcuts a{padding:14px 17px}.bf-dash .bf-dash-metric{padding:20px}}
@media(max-width:1320px){.bf-dash-status-layout{grid-template-columns:1fr;gap:8px}.bf-dash-donut{width:130px}.bf-dash-status-list{max-width:330px;width:100%;margin-inline:auto}}
@media(max-width:1100px){.bf-dash-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr))}.bf-dash-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.bf-dash-widget--trend,.bf-dash-widget--status,.bf-dash-widget--recent{grid-column:1/-1}.bf-dash-status-layout{grid-template-columns:minmax(0,1fr) minmax(0,1.3fr)}.bf-dash-donut{width:142px}}
@media(max-width:790px){.bf-dash-hero{border-radius:16px}.bf-dash-hero-side{flex-basis:130px}.bf-dash-status-layout{grid-template-columns:minmax(0,1fr) minmax(0,1.3fr)}.bf-dash .bf-dash-metric{min-height:125px}}
@media(max-width:560px){.bf-dash-hero{padding:22px 17px;gap:12px}.bf-dash-hero-side{flex-basis:95px;padding:14px 7px}.bf-dash-hero-side strong{font-size:25px}.bf-dash-hero h2{font-size:22px}.bf-dash-hero p{font-size:12px}.bf-dash-hero-range{font-size:10px}.bf-dash .bf-dash-metric{padding:13px;min-height:120px}.bf-dash-shortcuts{gap:7px}.bf-dash-shortcuts a{padding:10px;min-height:58px;gap:8px;font-size:11px}.bf-dash-shortcut-icon{width:30px;height:30px}.bf-dash-shortcut-icon svg{width:18px}.bf-dash-widgets>.bf-dash-widget{padding:14px}.bf-dash .bf-dash-bars{height:138px}.bf-dash-customizer-content{inset-inline-end:0}}
@media(max-width:400px){.bf-dash-hero{flex-direction:column}.bf-dash-hero-side{align-self:stretch;flex-basis:auto;flex-direction:row;justify-content:space-between;text-align:start;gap:8px}.bf-dash-hero-side strong{font-size:25px}.bf-dash-hero-side small{white-space:nowrap}.bf-dash-metrics{grid-template-columns:1fr 1fr;gap:7px}.bf-dash .bf-dash-metric{padding:12px 10px}.bf-dash .bf-dash-metric-value{font-size:20px}.bf-dash-status-layout{grid-template-columns:1fr}.bf-dash-donut{width:142px}.bf-dash-customizer{margin-inline-start:0}.bf-dash .bf-dash-period a{padding:7px 10px}.bf-dash-toolbar{gap:8px}}
@media(max-width:340px){.bf-dash-metrics{grid-template-columns:1fr}.bf-dash-shortcuts{grid-template-columns:1fr}.bf-dash .bf-dash-metric{min-height:105px}}
@media(prefers-reduced-motion:reduce){.bf-dash :is(.bf-dash-bar-fill,.bf-dash-metric,.bf-dash-shortcuts a){transition:none!important;transform:none!important}}

/* RC02: mobile order identifiers must never break mid-number. */
.bf-dash .bf-dash-order-table td:first-child,.bf-dash .bf-dash-order-table th:first-child{white-space:nowrap;overflow-wrap:normal;word-break:keep-all;min-width:78px}
.bf-dash .bf-dash-order-table td:nth-child(2){min-width:225px}
.bf-account-tools-heading{margin-top:22px!important}
@media(max-width:560px){.bf-dash .bf-dash-status-label{font-size:12px}.bf-dash .bf-dash-order-table{min-width:560px}.bf-dash .bf-dash-orders-scroll{overscroll-behavior-inline:contain}}
/* Prevent the customizer popover from escaping narrow RTL/LTR viewports. */
@media(max-width:560px){
  .bf-dash-toolbar{position:relative}
  .bf-dash-customizer{position:static}
  .bf-dash-customizer-content{
    position:absolute;inset-inline-start:0;inset-inline-end:auto;
    top:calc(100% + 8px);width:min(354px,100%);max-width:100%;
  }
}

/* DASH-RC03: premium buyer product/variation analysis, independent of wallet UI. */
.bf-dash-widget--products{grid-column:1/-1;min-height:170px!important}
.bf-dash .bf-dash-product-headline{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:13px;margin:16px 0 12px}
.bf-dash-product-stats{display:flex;flex-wrap:wrap;align-items:center;gap:9px}
.bf-dash-product-stats>span{display:inline-flex;align-items:center;gap:7px;border:1px solid var(--bf-border);background:var(--bf-soft);border-radius:10px;color:var(--bf-muted);font-size:11px;font-weight:650;padding:7px 10px;max-width:100%}
.bf-dash-product-stats strong{color:var(--bf-ink);font-size:16px;font-weight:870;font-variant-numeric:tabular-nums}
.bf-dash-product-sort{display:inline-flex;gap:4px;align-items:center;padding:4px;background:var(--bf-soft);border-radius:10px;flex-wrap:wrap}
.bf-dash-product-sort a{display:inline-flex;align-items:center;justify-content:center;padding:7px 12px;min-height:34px;border-radius:8px;color:var(--bf-muted);font-size:11px;font-weight:800}
.bf-dash-product-sort a.is-active{background:var(--bf-dash-accent-soft);color:var(--bf-dash-accent-ink)}
.bf-dash-product-subtitle{font-size:13px;font-weight:800;margin:13px 0 8px;color:var(--bf-ink)}
.bf-dash-product-scroll{max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain;border:1px solid var(--bf-border);border-radius:12px}
.bf-dash-products-table{width:100%;min-width:780px;border-collapse:collapse;font-size:12px;line-height:1.5;color:var(--bf-ink)}
.bf-dash-products-table th,.bf-dash-products-table td{padding:12px 10px;text-align:start;border-bottom:1px solid var(--bf-border);vertical-align:middle}
.bf-dash-products-table thead{background:var(--bf-soft)}
.bf-dash-products-table thead th{color:var(--bf-muted);font-size:10px;letter-spacing:.035em;text-transform:uppercase;font-weight:790;white-space:nowrap}
.bf-dash-products-table tbody tr:last-child :is(th,td){border-bottom:0}
.bf-dash-products-table tbody tr:hover{background:var(--bf-surface-highlight)}
.bf-dash-products-table th:first-child{min-width:220px;max-width:430px;width:39%;font-weight:650}
.bf-dash-products-table td:nth-child(2),.bf-dash-products-table td:nth-child(3){font-weight:800;font-variant-numeric:tabular-nums}
.bf-dash-prod-name{display:flex;align-items:center;gap:10px;min-width:0}
.bf-dash-prod-rank{display:grid;place-items:center;flex:none;width:29px;height:29px;border-radius:9px;background:var(--bf-dash-accent-soft);color:var(--bf-dash-accent-ink);font-size:11px}
.bf-dash-prod-title{min-width:0;overflow-wrap:anywhere;line-height:1.45;display:flex;flex-direction:column;gap:1px}
.bf-dash-prod-title small{color:var(--bf-muted);font-size:10px}
.bf-dash-currency{font-size:9px;font-weight:750;padding:3px 5px;border-radius:5px;border:1px solid var(--bf-border);background:var(--bf-soft);color:var(--bf-muted);letter-spacing:.02em;white-space:nowrap}
.bf-dash-product-money{font-variant-numeric:tabular-nums;white-space:nowrap}
.bf-dash-product-reorder{display:inline-flex;align-items:center;justify-content:center;gap:6px;border:1px solid var(--bf-dash-accent);background:var(--bf-dash-accent-soft);color:var(--bf-dash-accent-ink);min-height:33px;white-space:nowrap;font-size:11px;font-weight:800;padding:6px 11px;border-radius:8px}
.bf-dash-product-reorder:hover,.bf-dash-product-reorder:focus-visible{color:var(--bf-dash-accent-ink);filter:brightness(1.04);box-shadow:0 0 0 2px var(--bf-dash-accent-soft)}
.bf-dash-product-reorder svg{width:14px;height:14px}
.bf-dash-product-disabled{color:var(--bf-muted);font-size:10px}
.bf-dash-product-empty{margin:17px 0 0;padding:19px 17px;border:1px dashed var(--bf-border);background:var(--bf-soft);color:var(--bf-muted);border-radius:11px;font-size:12px}
.bf-dash-variation-details{margin-top:18px;max-width:100%}
.bf-dash-variation-details>summary{color:var(--bf-dash-accent-ink);font-size:12px;font-weight:790;cursor:pointer;margin-bottom:12px;padding:8px 0;overflow-wrap:anywhere}
.bf-dash-variation-details>summary span{color:var(--bf-muted)}
.bf-dash-product-disclaimer{font-size:10px!important;color:var(--bf-muted);margin:14px 0 0!important;line-height:1.55}
html:is([data-bf-theme="dim"],[data-bf-theme="dark"]) .bf-dash-product-reorder{border-color:var(--bf-dash-accent);color:var(--bf-dash-accent-ink)}
@media(max-width:560px){.bf-dash-product-sort{width:100%;justify-content:flex-start}.bf-dash-product-stats>span{font-size:10px;padding:6px 8px}.bf-dash-widgets>.bf-dash-widget--products{padding:14px 12px}.bf-dash-products-table{min-width:750px}}
@media(prefers-reduced-motion:reduce){.bf-dash-product-reorder{transition:none!important}}

/* DASH-RC04: verified read-only wallet reporting. Never render placeholder balances. */
.bf-dash-widget--finance{grid-column:1/-1;min-width:0}
.bf-finance-source{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:9px;margin:10px 0 13px;font-size:11px;color:var(--bf-muted)}
.bf-finance-verified{display:inline-flex;align-items:center;gap:7px;padding:6px 10px;border:1px solid var(--bf-border);border-radius:99px;background:var(--bf-soft);color:var(--bf-ink);font-weight:750}
.bf-finance-verified::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--bf-dash-success)}
.bf-finance-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:13px 0}
.bf-finance-stat{min-width:0;display:flex;flex-direction:column;gap:5px;padding:16px;border:1px solid var(--bf-border);background:var(--bf-soft);border-radius:13px}
.bf-finance-stat>span{font-size:11px;font-weight:720;color:var(--bf-muted)}
.bf-finance-stat strong{font-size:clamp(17px,1.8vw,24px);line-height:1.25;color:var(--bf-ink);letter-spacing:-.025em;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.bf-finance-stat small{font-size:10px;line-height:1.45;color:var(--bf-muted)}
.bf-finance-stat--credit strong{color:var(--bf-dash-success)}
.bf-finance-stat--debit strong{color:var(--bf-dash-error)}
.bf-finance-comparison{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:10px 0 16px}
.bf-finance-comparison>div{min-width:0;display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:7px 12px;border:1px solid var(--bf-border);border-radius:10px;padding:11px 13px}
.bf-finance-comparison span{font-size:11px;color:var(--bf-muted);font-weight:680}
.bf-finance-comparison strong{color:var(--bf-ink);font-size:13px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.bf-finance-table-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin:15px 0 10px}
.bf-finance-table-head h4{font-size:13px;color:var(--bf-ink);margin:0;font-weight:800}
.bf-finance-export,.bf-finance-unavailable a{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid var(--bf-dash-accent);background:var(--bf-dash-accent-soft);color:var(--bf-dash-accent-ink);border-radius:9px;padding:8px 12px;min-height:36px;font-size:11px;font-weight:800;text-decoration:none}
.bf-finance-export svg,.bf-finance-unavailable a svg{width:16px;height:16px}
.bf-finance-table-scroll{max-width:100%;overflow-x:auto;border:1px solid var(--bf-border);border-radius:12px;overscroll-behavior-inline:contain}
.bf-finance-table{width:100%;border-collapse:collapse;min-width:660px;color:var(--bf-ink);font-size:12px;line-height:1.4}
.bf-finance-table th,.bf-finance-table td{padding:11px 13px;border-bottom:1px solid var(--bf-border);text-align:start;vertical-align:top}
.bf-finance-table thead{background:var(--bf-soft)}
.bf-finance-table thead th{font-size:10px;font-weight:780;letter-spacing:.025em;color:var(--bf-muted);text-transform:uppercase;white-space:nowrap}
.bf-finance-table tbody tr:last-child td{border-bottom:none}
.bf-finance-table tbody tr:hover{background:var(--bf-surface-highlight)}
.bf-finance-table .bf-finance-date{font-size:11px;font-variant-numeric:tabular-nums;white-space:nowrap}
.bf-finance-description{max-width:520px;overflow-wrap:anywhere}
.bf-finance-type{display:inline-flex;align-items:center;justify-content:center;border-radius:99px;padding:4px 9px;font-weight:780;font-size:10px;background:var(--bf-soft);border:1px solid var(--bf-border);white-space:nowrap}
.bf-finance-type--credit{color:var(--bf-dash-success)}
.bf-finance-type--debit{color:var(--bf-dash-error)}
.bf-finance-amount{text-align:end!important;white-space:nowrap;font-weight:820;font-variant-numeric:tabular-nums}
.bf-finance-amount.is-credit{color:var(--bf-dash-success)}
.bf-finance-amount.is-debit{color:var(--bf-dash-error)}
.bf-finance-unavailable{margin:16px 0 0;border:1px dashed var(--bf-border);background:var(--bf-soft);border-radius:12px;padding:20px;color:var(--bf-ink)}
.bf-finance-alert{font-size:13px;font-weight:850;color:var(--bf-dash-warning)}
.bf-finance-unavailable p,.bf-finance-disclaimer,.bf-finance-no-rows{font-size:11px!important;line-height:1.55;color:var(--bf-muted)}
.bf-finance-no-rows{padding:16px;border:1px dashed var(--bf-border);border-radius:10px;background:var(--bf-soft)}
.bf-finance-disclaimer{margin:12px 0 0!important}
@media(max-width:1100px){.bf-finance-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.bf-finance-comparison{grid-template-columns:1fr 1fr}}
@media(max-width:560px){.bf-dash-widgets>.bf-dash-widget--finance{padding:14px 12px}.bf-finance-stats{gap:7px}.bf-finance-stat{padding:12px 10px}.bf-finance-stat strong{font-size:18px}.bf-finance-comparison{grid-template-columns:1fr}.bf-finance-table{min-width:640px}}
@media(max-width:340px){.bf-finance-stats{grid-template-columns:1fr}}


/* DASH-RC05: operational evidence and order-refund count panel. Theme tokens work in all modes. */
.bf-dash-widget--operations{grid-column:1/-1;min-width:0}
.bf-ops-stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:17px 0 12px}
.bf-ops-stat{display:flex;flex-direction:column;gap:5px;min-width:0;padding:13px;border:1px solid var(--bf-border);background:var(--bf-soft);border-radius:12px}
.bf-ops-stat span{font-size:11px;line-height:1.4;color:var(--bf-muted);font-weight:650}
.bf-ops-stat strong{font-size:clamp(20px,2.5vw,28px);color:var(--bf-ink);letter-spacing:-.03em;font-variant-numeric:tabular-nums}
.bf-ops-stat--risk strong{color:var(--bf-negative)}
.bf-ops-stat--refund strong{color:var(--bf-primary)}
.bf-ops-secondary{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:10px;margin-bottom:17px}
.bf-ops-secondary>div{border:1px solid var(--bf-border);border-radius:12px;padding:13px;background:var(--bf-surface);display:flex;flex-direction:column;gap:4px;min-width:0}
.bf-ops-secondary span,.bf-ops-secondary small{font-size:11px;color:var(--bf-muted)}
.bf-ops-secondary strong{font-size:17px;color:var(--bf-ink)}
.bf-ops-delivery strong{font-weight:700;color:var(--bf-negative)}
.bf-ops-table-title{display:flex;justify-content:space-between;gap:8px;align-items:center;flex-wrap:wrap}
.bf-ops-table-title h4{font-size:13px;margin:10px 0}
.bf-ops-table-title span{font-size:11px;color:var(--bf-muted)}
.bf-ops-table-wrap{overflow-x:auto;max-width:100%;border:1px solid var(--bf-border);border-radius:12px}
.bf-ops-table{border-collapse:collapse;width:100%;min-width:450px;text-align:start}
.bf-ops-table th,.bf-ops-table td{padding:10px 12px;border-bottom:1px solid var(--bf-border);font-size:12px;text-align:start}
.bf-ops-table th{color:var(--bf-muted);font-weight:650}
.bf-ops-table tbody tr:last-child td,.bf-ops-table tbody tr:last-child th{border-bottom:0}
.bf-ops-table a{color:var(--bf-primary);font-weight:700;text-decoration:underline;text-underline-offset:3px}
.bf-ops-table a:focus-visible,.bf-ops-table-wrap:focus-visible{outline:3px solid var(--bf-primary);outline-offset:2px}
.bf-ops-empty{padding:15px;margin-top:12px;background:var(--bf-soft);border:1px solid var(--bf-border);border-radius:12px;color:var(--bf-muted)}
.bf-ops-empty p{margin:5px 0 0}
.bf-ops-disclaimer{font-size:11px;line-height:1.6;color:var(--bf-muted);margin:15px 0 0}
@media(max-width:860px){.bf-ops-stats{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:480px){.bf-ops-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.bf-ops-stat{padding:10px}.bf-ops-secondary{grid-template-columns:1fr}.bf-ops-table-title span{width:100%}}
@media(prefers-reduced-motion:reduce){.bf-ops-stat,.bf-ops-table *{animation:none!important;transition:none!important}}

/* DASH-RC06: planning and verified renewal evidence. No injected data in CSS. */
.bf-dash-widget--planning{grid-column:1/-1;min-width:0}
.bf-plan-layout{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;margin-top:17px}
.bf-plan-section{min-width:0;display:flex;flex-direction:column;gap:12px;border:1px solid var(--bf-border);border-radius:15px;background:var(--bf-surface-highlight);padding:17px}
.bf-plan-section-top{display:flex;align-items:flex-start;gap:12px}
.bf-plan-section-top h4{font-size:14px;font-weight:850;color:var(--bf-ink);line-height:1.35;margin:0 0 3px}
.bf-plan-section-top p{font-size:11px;color:var(--bf-muted);line-height:1.55;margin:0}
.bf-plan-emblem{display:flex;justify-content:center;align-items:center;flex:none;width:38px;height:38px;color:var(--bf-dash-accent-ink);background:var(--bf-dash-accent-soft);border-radius:11px}
.bf-plan-emblem svg{width:20px;height:20px}
.bf-plan-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
.bf-plan-stat{display:flex;flex-direction:column;justify-content:space-between;min-width:0;gap:8px;background:var(--bf-surface);border:1px solid var(--bf-border);border-radius:11px;padding:10px}
.bf-plan-stat span{color:var(--bf-muted);font-size:10px;font-weight:680;line-height:1.35}
.bf-plan-stat strong{color:var(--bf-ink);font-size:18px;font-weight:850;font-variant-numeric:tabular-nums;line-height:1.1;overflow-wrap:anywhere}
.bf-plan-stat--warning strong{color:var(--bf-dash-warning)}
.bf-plan-stat--alert strong{color:var(--bf-dash-error)}
.bf-plan-empty{padding:15px;border:1px dashed var(--bf-border);background:var(--bf-surface);border-radius:12px;display:flex;flex-direction:column;align-items:flex-start;gap:8px}
.bf-plan-empty strong{font-size:12px;color:var(--bf-ink);line-height:1.5}
.bf-plan-empty p,.bf-plan-helper{font-size:11px;line-height:1.65;color:var(--bf-muted);margin:0}
.bf-plan-empty a{display:inline-flex;align-items:center;gap:7px;min-height:32px;padding:5px 10px;font-size:11px;font-weight:780;color:var(--bf-dash-accent-ink);border:1px solid var(--bf-dash-accent);background:var(--bf-dash-accent-soft);border-radius:8px}
.bf-plan-empty a svg{width:14px;height:14px}
.bf-plan-source{margin-top:auto;font-size:10px;color:var(--bf-muted);padding-top:7px;border-top:1px solid var(--bf-border)}
.bf-plan-scroll{min-width:0;max-width:100%;overflow-x:auto;border:1px solid var(--bf-border);border-radius:10px}
.bf-plan-table{width:100%;min-width:420px;border-collapse:collapse;font-size:11px}
.bf-plan-table th,.bf-plan-table td{padding:9px 10px;text-align:start;border-bottom:1px solid var(--bf-border)}
.bf-plan-table th{color:var(--bf-muted);font-size:10px;background:var(--bf-soft)}
.bf-plan-table tbody tr:last-child td{border-bottom:0}
.bf-plan-table a{font-weight:750;color:var(--bf-dash-accent-ink)}
.bf-plan-activity{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;padding:13px;background:var(--bf-surface);border:1px solid var(--bf-border);border-radius:11px}
.bf-plan-activity span{color:var(--bf-muted);font-size:11px;font-weight:680}
.bf-plan-activity strong{color:var(--bf-ink);font-size:16px;font-weight:850;font-variant-numeric:tabular-nums}
.bf-plan-metrics--forecast{grid-template-columns:repeat(3,minmax(0,1fr))}
.bf-plan-metrics--forecast strong{font-size:14px}
.bf-plan-shortfall{display:grid;grid-template-columns:1fr auto;gap:8px 10px;padding:12px;border-radius:11px;background:var(--bf-dash-accent-soft);font-size:11px;align-items:center}
.bf-plan-shortfall span{color:var(--bf-ink);font-weight:670}
.bf-plan-shortfall strong{color:var(--bf-dash-accent-ink);font-weight:850;font-variant-numeric:tabular-nums}
html:is([data-bf-theme="dim"],[data-bf-theme="dark"]) .bf-plan-empty a{color:var(--bf-dash-accent-ink)}
@media(max-width:1080px){.bf-plan-layout{grid-template-columns:1fr}}
@media(max-width:560px){.bf-dash-widgets>.bf-dash-widget--planning{padding:14px 12px}.bf-plan-section{padding:12px}.bf-plan-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.bf-plan-metrics--forecast{grid-template-columns:1fr}.bf-plan-metrics--forecast .bf-plan-stat{flex-direction:row;align-items:center;gap:10px}.bf-plan-metrics--forecast strong{white-space:nowrap}.bf-plan-shortfall{grid-template-columns:1fr}}
@media(max-width:340px){.bf-plan-metrics{grid-template-columns:1fr}}

/* DASH-RC07: local, rules-based insights. Semantic tokens in light/dim/dark and RTL. */
.bf-dash-widget--insights{grid-column:1/-1;min-width:0}
.bf-insight-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;margin:17px 0}
.bf-insight-card{min-width:0;border:1px solid var(--bf-border);border-inline-start:4px solid var(--bf-primary);border-radius:13px;background:var(--bf-surface-highlight);padding:15px;display:flex;flex-direction:column;gap:8px}
.bf-insight-card--attention{border-inline-start-color:var(--bf-dash-warning)}
.bf-insight-card--projection{border-inline-start-color:var(--bf-dash-success)}
.bf-insight-card-top{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.bf-insight-card strong{font-size:13px;color:var(--bf-ink);font-weight:820;line-height:1.5}
.bf-insight-card p{font-size:11px;line-height:1.65;color:var(--bf-ink);margin:0}
.bf-insight-card small{margin-top:auto;font-size:10px;color:var(--bf-muted);border-top:1px solid var(--bf-border);padding-top:7px}
.bf-insight-pill{display:inline-flex;align-items:center;font-size:10px;font-weight:750;padding:4px 9px;border:1px solid var(--bf-border);border-radius:99px;background:var(--bf-soft);color:var(--bf-ink);white-space:nowrap}
.bf-insight-value{font-weight:840;font-size:15px;color:var(--bf-ink);overflow-wrap:anywhere}
.bf-insight-empty{padding:15px;border:1px dashed var(--bf-border);border-radius:12px;background:var(--bf-soft);color:var(--bf-muted);font-size:12px;margin-top:12px}
.bf-insight-faq{padding:16px;border:1px solid var(--bf-border);border-radius:13px;background:var(--bf-surface);min-width:0}
.bf-insight-faq h4{font-size:13px;margin:0 0 12px;color:var(--bf-ink)}
.bf-insight-question{border-top:1px solid var(--bf-border);padding:10px 0;font-size:12px;color:var(--bf-ink)}
.bf-insight-question:first-of-type{border-top:none}
.bf-insight-question summary{font-weight:720;cursor:pointer;line-height:1.5;padding-inline-end:6px}
.bf-insight-question summary:focus-visible{outline:3px solid var(--bf-primary);outline-offset:3px;border-radius:4px}
.bf-insight-question p{margin:9px 0 0;padding:11px 13px;border-radius:8px;background:var(--bf-soft);color:var(--bf-ink);overflow-wrap:anywhere}
.bf-insight-footer{font-size:11px!important;color:var(--bf-muted);line-height:1.6;margin:14px 0 0!important}
@media(max-width:720px){.bf-insight-list{grid-template-columns:1fr}}
@media(max-width:560px){.bf-dash-widgets>.bf-dash-widget--insights{padding:14px 12px}.bf-insight-card{padding:12px}.bf-insight-faq{padding:12px}}
@media(prefers-reduced-motion:reduce){.bf-insight-card,.bf-insight-question *{animation:none!important;transition:none!important}}

/* DASH-RC12: accessible per-buyer calendar filters and complete product breakdown. */
.bf-dash-product-range{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px;margin:14px 0 6px;padding:12px;border:1px solid var(--bf-border);background:var(--bf-soft);border-radius:12px}
.bf-dash-product-range label{display:flex;flex-direction:column;gap:4px;min-width:135px;font-size:11px;font-weight:750;color:var(--bf-ink)}
.bf-dash-product-range input{min-height:38px;max-width:100%;border:1px solid var(--bf-border);border-radius:8px;padding:7px 9px;background:var(--bf-surface);color:var(--bf-ink);color-scheme:normal}
html:is([data-bf-theme="dim"],[data-bf-theme="dark"]) .bf-dash-product-range input{color-scheme:dark}
.bf-dash-product-range button{min-height:38px;border-radius:8px;border:1px solid var(--bf-dash-accent);background:var(--bf-dash-accent);color:#fff;cursor:pointer;font-size:12px;font-weight:800;padding:8px 13px}
.bf-dash-product-range>a{font-weight:750;font-size:12px;color:var(--bf-dash-accent-ink);padding:8px 5px;text-decoration:underline}
.bf-dash-product-range-hint{margin:0 0 15px!important;font-size:11px!important;color:var(--bf-muted)!important}
.bf-dash-product-totals{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
.bf-dash-product-totals>span{flex:1 1 160px;min-width:0;max-width:100%;border:1px solid var(--bf-border);background:var(--bf-soft);border-radius:11px;padding:10px 12px;display:flex;flex-direction:column;gap:4px}
.bf-dash-product-totals b{font-weight:720;font-size:10px;color:var(--bf-muted)}
.bf-dash-product-totals strong{font-size:18px;font-weight:850;line-height:1.3;color:var(--bf-ink);overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.bf-dash-full-list{margin-top:10px;border:1px solid var(--bf-border);border-radius:11px;padding:2px 10px 10px}
.bf-dash-product-pages{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:12px;margin-top:10px;font-size:12px;color:var(--bf-muted)}
.bf-dash-product-pages a{display:inline-flex;min-height:34px;align-items:center;border:1px solid var(--bf-border);border-radius:8px;padding:6px 11px;font-weight:750;color:var(--bf-dash-accent-ink)}
.bf-dash-product-pages a:hover,.bf-dash-product-pages a:focus-visible{background:var(--bf-dash-accent-soft)}
@media(max-width:560px){.bf-dash-product-range{padding:10px;gap:8px}.bf-dash-product-range label{flex:1 1 120px}.bf-dash-product-range input{width:100%}.bf-dash-product-range button{width:100%}.bf-dash-product-totals>span{flex:1 1 125px}}
