/* The Black Week bar, drawn by the "blackWeekBar" partial (static/html/black_week.html) only while the sale runs.
   The look is the approved canvas of goal 39: the main button's violet, white pill, two type sizes per layout, 44 px controls.
   It stands on its own: no page token is read, so it is the same on the home page and on every chrome.css page. */

/* ui-lint: allow default-accent (violet is the justRead accent in .claude/design.md) */
.bw{--bw-h:72px;--bw-soft:#F1EDFE;--bw-cta-ink:#6D28D9;--ctl:44px;position:relative;z-index:1;background:#7C3AED;color:#FFFFFF;font-family:"Satoshi",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-size:1.0625rem;font-weight:500;line-height:1.4;text-align:left;-webkit-font-smoothing:antialiased}
.bw--chrome{--bw-h:var(--nav-height,66px)}
.bw *,.bw *::before,.bw *::after{box-sizing:border-box}
.bw p,.bw b{margin:0;padding:0}
.bw a{color:inherit;text-decoration:none}
.bw .bw-link:focus-visible,.bw .bw-x:focus-visible{outline:2px solid #FFFFFF;outline-offset:-4px;border-radius:12px}

/* Phone and tablet layout: one row as tall as the nav. Two short text lines, the pill and the cross. */
.bw-in{position:relative;display:flex;align-items:center;gap:8px;width:calc(100% - 32px);min-height:var(--bw-h);padding:4px 0;margin-inline:auto}
.bw-link{display:flex;flex:1;min-width:0;align-items:center;justify-content:space-between;gap:12px}
.bw-msg{display:block;flex:1;min-width:0}
/* ui-lint: allow weight (Satoshi 900 is a self-hosted weight of .claude/design.md) */
.bw-deal{display:block;font-size:1.0625rem;line-height:1.2;font-weight:900;letter-spacing:-0.02em;overflow-wrap:anywhere;text-wrap:balance}
.bw-name{font-weight:inherit;color:var(--bw-soft)}
.bw-when{display:block;font-size:0.875rem;line-height:1.3;font-weight:500;color:var(--bw-soft);overflow-wrap:anywhere;text-wrap:balance}
.bw-when b{font-weight:700;color:#FFFFFF}
.bw-cta{display:inline-flex;flex:none;align-items:center;justify-content:center;min-height:var(--ctl);padding:0 14px;border-radius:999px;background:#FFFFFF;color:var(--bw-cta-ink);font-size:1.0625rem;font-weight:700;line-height:1.2;white-space:nowrap}
.bw-link:hover .bw-cta{background:var(--bw-soft)}
.bw-x{display:grid;flex:none;place-items:center;width:var(--ctl);height:var(--ctl);margin:0;padding:0;border:1px solid rgba(255,255,255,0.4);border-radius:999px;background:transparent;color:#FFFFFF;font:inherit;cursor:pointer}
.bw-x:hover{background:rgba(255,255,255,0.16)}
.bw-x svg{display:block;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round}
.bw-long{display:none}

/* Below 521 px the phone copy is used; from there up the full sentence fits beside the pill. */
@media (min-width:521px){
.bw-long{display:inline}
.bw-short{display:none}
}

/* The bar's edges follow the nav it sits on: the home page keeps 96 px gutters above 760 px, the chrome.css pages 24 px above 640 px. */
@media (min-width:761px){
.bw--home .bw-in{width:min(100% - 96px,1200px)}
}
@media (min-width:641px){
.bw--chrome .bw-in{width:min(100% - 48px,1152px)}
}

/* Wide screens: one centred row, the display size, and the cross on the right edge. If a language runs long, the dates drop under the headline. */
@media (min-width:1200px){
.bw-in{display:flex;justify-content:center;gap:0;height:var(--bw-h);min-height:0;padding:0}
.bw-link{flex:none;justify-content:flex-start;gap:32px;max-width:calc(100% - 120px)}
.bw-msg{display:flex;flex:0 1 auto;flex-wrap:wrap;align-items:baseline;column-gap:24px}
.bw-deal{font-size:1.75rem;line-height:1.1}
.bw-when{font-size:1.0625rem;line-height:1.4}
.bw-cta{padding:0 20px}
.bw-x{position:absolute;right:0;top:50%;translate:0 -50%}
}
/* A language whose full sentence cannot share one row at this width gets the short copy (the bar's script adds .bw--tight), so the row stays one row. */
@media (min-width:1200px){
.bw--tight .bw-long{display:none}
.bw--tight .bw-short{display:inline}
}

@media print{.bw{display:none}}

/* The bar scrolls away above the nav. On the chrome.css pages the nav is fixed and the body is padded for it; with the bar present the nav becomes sticky
   in the flow, below the bar, so the browser itself moves it (no script, no lag on a phone). Several pages set overflow hidden on html and body, which
   makes body a scroll container and stops sticky from ever sticking, so the body's horizontal clip becomes overflow-x:clip, which clips the same and
   scrolls nothing. --bw-gap (the part of the bar still on screen, kept by the bar's script) only places the open mobile menu, which is fixed. Without
   the bar (cross, expiry) none of these rules match and the page is exactly what it was. Without scripting the bar is not drawn at all. */
body:has(> .bw){padding-top:0;overflow-x:clip;overflow-y:visible}
body:has(> .bw) > .bw ~ nav:first-of-type{position:sticky;top:0;margin-bottom:-1px}
body:has(> .bw) .mobile-menu{top:calc(var(--nav-height) + var(--bw-gap,var(--nav-height)))}
@media (scripting:none){
.bw{display:none}
body:has(> .bw){padding-top:var(--nav-height)}
body:has(> .bw) > .bw ~ nav:first-of-type{position:fixed;top:0;margin-bottom:0}
body:has(> .bw) .mobile-menu{top:var(--nav-height)}
}
