/* Happy Holidays header (Nov 25, 2026).
   AB's pine garland (red ribbon, bow, gold snowflakes) hangs across the top of the ClearPayoff banner,
   with "Happy Holidays" on either side of the bow, on a red snowflake background with a few flakes drifting down.
   The bar under it (menu, Receiving / Add to Inventory / Consumables, search) is dressed as a white fireplace mantle with candles and a clock.
   The logo, name, tagline, buttons and search work exactly as before.
   The red snowflake page background behind the work area is in holiday-page.css.
   Only on while <html> has the cp-holiday class, which a one-line script in each page's head adds
   until Jan 2, 2027 (Pacific). To switch it off early: empty this file and holiday-page.css.
   Font: a "Happy Holidays"-only subset of Dancing Script Bold, renamed per its SIL Open Font License (notice inside the font file). */
@font-face{font-family:"CP Holiday Script";src:url(/assets/holiday/holiday-script.woff2) format("woff2");font-weight:700;font-style:normal;font-display:swap}
html.cp-holiday body .clearpayoff-banner{
 --cp-garland:80px;
 padding-top:calc(var(--cp-garland) - 8px);
 min-height:calc(var(--cp-garland) + 62px);
 border-bottom:0;
 background-image:
  url(/assets/holiday/garland-bow.webp),
  url(/assets/holiday/garland-tile.webp),
  url(/assets/holiday/snow-bg.svg),
  radial-gradient(ellipse 80% 120% at 50% 35%,#c3141f 0%,#9b0f18 48%,#650810 100%);
 background-size:auto var(--cp-garland),auto var(--cp-garland),640px 180px,100% 100%;
 background-position:center top,center top,0 0,0 0;
 background-repeat:no-repeat,repeat-x,repeat,no-repeat;
}
html.cp-holiday body .clearpayoff-banner::before,
html.cp-holiday body .clearpayoff-banner::after{
 position:absolute;top:calc(var(--cp-garland) * .56);transform:translateY(-50%);z-index:1;pointer-events:none;
 font:700 calc(var(--cp-garland) * .46)/1.1 "CP Holiday Script","Dancing Script","Brush Script MT","Segoe Script",cursive;
 color:#fff7de;white-space:nowrap;letter-spacing:.2px;
 text-shadow:1px 0 0 #7a1016,-1px 0 0 #7a1016,0 1px 0 #7a1016,0 -1px 0 #7a1016,1px 1px 0 #7a1016,-1px -1px 0 #7a1016,1px -1px 0 #7a1016,-1px 1px 0 #7a1016,0 2px 5px #1a0000,0 0 12px #000000b3;
}
html.cp-holiday body .clearpayoff-banner::before{content:"Happy";right:calc(50% + var(--cp-garland) * .9)}
html.cp-holiday body .clearpayoff-banner::after{content:"Holidays";left:calc(50% + var(--cp-garland) * .9)}
/* Keep the name and tagline easy to read on red. */
html.cp-holiday body :is(.clearpayoff-banner-name,.clearpayoff-banner-tagline){text-shadow:0 1px 2px #2a0004,0 0 10px #3a0006b3}
html.cp-holiday body .clearpayoff-banner-name small{color:#fbe9e9}
/* Falling snow in the banner: its decorative globe becomes a see-through layer of flakes. */
html.cp-holiday body .clearpayoff-banner-globe{
 top:0;right:0;left:0;bottom:0;z-index:2;
 font-size:0;color:transparent;
 background-image:url(/assets/holiday/snow-fall.svg),url(/assets/holiday/snow-fall.svg);
 background-size:300px 260px,450px 390px;background-position:0 0,140px 0;background-repeat:repeat;
 animation:cp-snowfall 26s linear infinite;
}
@keyframes cp-snowfall{from{background-position:0 0,140px 0}to{background-position:0 260px,140px 780px}}

/* The white mantle (from AB's photo, Nov 26): the button bar is a fireplace mantle. A crown-molded shelf runs along its top
   and curves back round at both ends, over a smooth white face with rounded bottom corners and a soft shadow.
   Two cream candles in silver candlesticks and a black mantel clock stand on the shelf.
   Text in the bar stays dark so it reads on white in light and dark mode. Nothing here can be clicked. */
html.cp-holiday body .layout>.main>.top{
 --cp-shelf:18px;--cp-over:12px;
 margin:0 16px!important;
 background:linear-gradient(180deg,#fdfcf9 0,#fbfaf6 var(--cp-shelf),#f6f4ef 70%,#ebe8e1 calc(100% - 3px),#c9c5bc 100%)!important;
 border-radius:0 0 8px 8px!important;
 color:#05234d!important;border-bottom:0!important;
 box-shadow:0 10px 14px -6px #2a0004b3,inset 0 -1px 0 #d6d2c9!important;
}
/* The shelf: wider than the face, with rounded returns shaded so the ends read as curving back. */
html.cp-holiday body .layout>.main>.top::before{
 content:""!important;display:block!important;position:absolute!important;z-index:3!important;pointer-events:none!important;
 top:0!important;bottom:auto!important;left:calc(var(--cp-over) * -1)!important;right:calc(var(--cp-over) * -1)!important;
 width:auto!important;height:var(--cp-shelf)!important;margin:0!important;transform:none!important;
 border-radius:11px 11px 8px 8px / 10px 10px 9px 9px!important;
 background:linear-gradient(180deg,#9b978e 0,#e2ded5 1px,#fff 3px,#f4f2ec 32%,#c6c2b9 34%,#fdfcf9 40%,#f1eee8 58%,#bdb9b0 61%,#fbfaf7 66%,#ebe8e1 86%,#a9a59c 100%)!important;
 box-shadow:0 3px 5px #2a000066,inset 8px 0 7px -5px #7a766d,inset -8px 0 7px -5px #7a766d!important;
}
/* Candles and clock standing on the shelf (they rise into the bottom of the red banner, between the name and the tagline). */
html.cp-holiday body .layout>.main>.top::after{
 content:""!important;display:block!important;position:absolute!important;z-index:4!important;pointer-events:none!important;
 top:auto!important;bottom:100%!important;left:0!important;right:0!important;width:auto!important;height:var(--cp-deco)!important;
 margin:0!important;transform:none!important;opacity:1!important;border:0!important;box-shadow:none!important;
 background:url(/assets/holiday/candle.svg) calc(50% - var(--cp-gap)) 100%/auto 100% no-repeat,
  url(/assets/holiday/mantel-clock.svg) 50% 100%/auto 74% no-repeat,
  url(/assets/holiday/candle.svg) calc(50% + var(--cp-gap)) 100%/auto 100% no-repeat!important;
}
html.cp-holiday body .layout>.main>.top :is(.top-home,.pagetitle,#hub-account-label,.hub-account,.topnote){color:#05234d!important}
/* Sizes (Nov 26, AB): mantle 20% shorter (104px to 83px on full-size screens), candles and clock 3 times as big.
   On full-size screens they stand beside the name and tagline and rise into the garland; the banner grows to fit the clock. */
html.cp-holiday body{--cp-deco:210px;--cp-gap:clamp(150px,calc(50vw - 395px),215px)}
html.cp-holiday body .clearpayoff-banner{min-height:max(calc(var(--cp-garland) + 62px),calc(var(--cp-garland) + var(--cp-deco) * .74 + 6px))}
@media(min-width:1201px){html.cp-holiday body .layout>.main>.top{height:83px!important;min-height:83px!important;padding:var(--cp-shelf) 28px 0!important}}
/* Narrower laptop windows: sized to the room between the name and the tagline, standing below the garland. */
@media(max-width:1200px){
 html.cp-holiday body{--cp-deco:clamp(90px,calc(50vw - 330px),180px);--cp-gap:calc(var(--cp-deco) * .82)}
 html.cp-holiday body .clearpayoff-banner{min-height:calc(var(--cp-garland) + var(--cp-deco) + 4px)}
}
@media(max-width:850px){
 html.cp-holiday body .clearpayoff-banner{--cp-garland:58px;padding-top:calc(var(--cp-garland) - 4px);min-height:calc(var(--cp-garland) + 50px);background-size:auto var(--cp-garland),auto var(--cp-garland),420px 118px,100% 100%}
 html.cp-holiday body .clearpayoff-banner-globe{background-size:210px 182px,315px 273px;animation-name:cp-snowfall-sm}
 /* Small screens: the candles and clock get their own band at the bottom of the banner, under the name and tagline. */
 html.cp-holiday body{--cp-deco:120px;--cp-gap:calc(var(--cp-deco) * .82)}
 html.cp-holiday body .clearpayoff-banner{padding-bottom:calc(var(--cp-deco) + 4px)!important}
}
@keyframes cp-snowfall-sm{from{background-position:0 0,140px 0}to{background-position:0 182px,140px 546px}}
@media(max-width:800px){
 html.cp-holiday body .clearpayoff-banner{--cp-garland:52px;padding-top:calc(var(--cp-garland) - 4px);min-height:calc(var(--cp-garland) + 48px)}
 html.cp-holiday body{--cp-deco:102px}
 html.cp-holiday body .layout>.main>.top{--cp-shelf:12px;--cp-over:8px;margin:0 10px!important;padding-top:14px!important;padding-bottom:6px!important;gap:5px!important}
 html.cp-holiday body .layout>.main>.top>.nav-toggle,html.cp-holiday body .layout>.main>.top>#cp-theme-toggle{width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important}
 html.cp-holiday body .layout>.main>.top>.shared-sheet-actions{padding:1px 0 2px!important}
 html.cp-holiday body .layout>.main>.top .shared-sheet-action{min-height:36px!important;padding:8px 11px!important;font-size:13px!important}
 /* Phones (AB's marked-up picture, Nov 26): candles moved out toward the edges, and Home, the menu button and the
    Receiving / Add to Inventory / Consumables buttons share one row (swipe it if a phone is too narrow), with the search under them.
    The light/dark switch and account controls sit at the end of the search row, so the mantle is about a row shorter. */
 html.cp-holiday body{--cp-gap:34vw}
 html.cp-holiday body .layout>.main>.top{row-gap:6px!important;column-gap:6px!important}
 html.cp-holiday body .layout>.main>.top>.top-home{order:1!important;font-size:16px!important}
 html.cp-holiday body .layout>.main>.top>.nav-toggle{order:2!important}
 html.cp-holiday body .layout>.main>.top>.shared-sheet-actions{order:3!important;flex:1 1 calc(100% - 110px)!important;width:auto!important;min-width:0!important}
 html.cp-holiday body .layout>.main>.top>.global-search{order:5!important;flex:1 1 160px!important;width:auto!important;min-width:0!important}
 html.cp-holiday body .layout>.main>.top>.cp-theme-toggle{order:6!important}
 html.cp-holiday body .layout>.main>.top>.notification-center{order:7!important}
 html.cp-holiday body .layout>.main>.top>.hub-brand-account{order:8!important;margin-left:0!important}
}
@media(max-width:360px){
 html.cp-holiday body{--cp-deco:90px}
 html.cp-holiday body .clearpayoff-banner{--cp-garland:46px}
}
@media(prefers-reduced-motion:reduce){html.cp-holiday body .clearpayoff-banner-globe{animation:none}}
/* Nov 26 (AB): "little tight here, overlapping logout and the bell". On wide screens the mantle is one row:
   menu, light/dark, the sheet buttons, search (it gives up room first), then your name, the bell and the logo.
   Logout is no longer a button here: tap your name to log out. On narrower laptops the logo steps aside
   (it is also at the top of the menu) and the buttons get a little tighter, so nothing is cut off. */
@media(min-width:1201px){
 html.cp-holiday body .layout>.main>.top{display:flex!important;flex-wrap:nowrap!important;align-items:center!important;gap:10px!important;overflow:visible!important}
 html.cp-holiday body .layout>.main>.top>*{margin-top:0!important;margin-bottom:0!important}
 html.cp-holiday body .layout>.main>.top>.nav-toggle{order:1;flex:0 0 auto}
 html.cp-holiday body .layout>.main>.top>.cp-theme-toggle,html.cp-holiday body .layout>.main>.top>#cp-theme-toggle{order:2;flex:0 0 auto}
 html.cp-holiday body .layout>.main>.top>.shared-sheet-actions{order:3;flex:0 1 auto;min-width:0;flex-wrap:nowrap!important}
 html.cp-holiday body .layout>.main>.top>.global-search{order:4;flex:1 1 140px!important;min-width:110px!important;max-width:560px!important;width:auto!important}
 html.cp-holiday body .layout>.main>.top>.hub-brand-account{order:5;margin-left:auto!important}
 html.cp-holiday body .layout>.main>.top .hub-brand-account{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-end!important;gap:10px!important;padding-bottom:0!important;flex:0 0 auto!important;width:auto!important;max-width:none!important;min-width:0!important}
 html.cp-holiday body .layout>.main>.top .hub-brand-account>.header-brand{order:2;flex:0 0 auto;margin:0!important}
 html.cp-holiday body .layout>.main>.top .hub-brand-account .header-brand img{height:40px!important;width:auto!important;max-width:none!important;object-fit:contain}
 html.cp-holiday body .layout>.main>.top .hub-quick-controls{order:1;height:auto!important;min-height:0!important;flex:0 0 auto;gap:8px!important}
 html.cp-holiday body .layout>.main>.top .hub-account{transform:none!important;padding-left:0!important;min-width:0}
 html.cp-holiday body .layout>.main>.top #hub-account-label{white-space:nowrap;font-size:15px!important}
}
@media(min-width:1201px) and (max-width:1700px){
 html.cp-holiday body .layout>.main>.top .hub-brand-account>.header-brand{display:none!important}
 html.cp-holiday body .layout>.main>.top .shared-sheet-actions{gap:6px!important}
 html.cp-holiday body .layout>.main>.top .shared-sheet-action{padding:8px 12px!important;font-size:14px!important}
 html.cp-holiday body .layout>.main>.top{padding-left:18px!important;padding-right:18px!important}
}
