/* Cyber Monday (functions/_sale.js): the home strip's extras over public/bfcd.css, and the sale prices. The same file on MacPip and iPip.
   Loaded only while the sale is on. The sale blue is #2563eb: white on it, and it on the cream page, both pass 4.5:1. */
.bfcd-cm{--br:#2563eb}
.bfcd-what{font-size:14px;white-space:nowrap}
.bfcd-what b{font-weight:700}
.bfcd-code{display:inline-flex;align-items:center;gap:7px;padding:3px 3px 3px 10px;border:1px dashed rgba(250,246,236,.42);border-radius:7px;white-space:nowrap}
.bfcd-codelbl{font-size:12px;opacity:.7}
.bfcd-code code{font:400 14px/1.2 var(--bpx);letter-spacing:.07em;color:#fff;background:none;padding:0}
.bfcd-copy{appearance:none;border:0;cursor:pointer;padding:6px 10px;background:var(--bt);color:var(--bc);border-radius:5px;font-family:inherit;font-size:12.5px;font-weight:600;line-height:1.2;transition:background-color .15s}
.bfcd-copy:hover{background:#3e392f}
.bfcd-copy[data-done]{background:var(--br);color:#fff}
.bfcd-copy:focus-visible{outline:2px solid var(--br);outline-offset:2px}
.bfcd-cm .bfcd-when{margin-left:auto}
.bfcd-cm .bfcd-add{margin-left:0}
/* The strip lays itself out by its own width, not the window's (it is a container). Full width, beside MacPip's awards card or inside
   iPip's deals header, it never leaves its black card. One line needs about 840px. Below that, on a laptop or a tablet, two lines:
   the name, the deal and the button, then the code and the clock. The empty :after breaks the line. Phones keep their own layout. */
.bfcd-cm{container-type:inline-size}
@media (min-width:761px){
  @container (max-width:860px){
    .bfcd-cm .bfcd-bar{flex-wrap:wrap;row-gap:4px}
    .bfcd-cm .bfcd-bar:after{content:"";order:2;flex:0 0 100%;height:0}
    .bfcd-cm .bfcd-add{order:1;margin-left:auto}
    .bfcd-cm .bfcd-code{order:3}
    .bfcd-cm .bfcd-when{order:4;margin-left:auto}
  }
  /* Narrower still (beside the awards card on a small laptop): "Ends in" goes, the clock speaks for itself. */
  @container (max-width:470px){
    .bfcd-cm .bfcd-bar{gap:8px 10px;padding-left:12px}
    .bfcd-cm .bfcd-when .bfcd-lbl{display:none}
  }
}
/* Beside the awards card the two cards are the same height, and the sale card keeps its blue shadow (awards.css sets Black Friday's
   red). Up to 1080px wide the sale card would be too narrow beside it, so the two stack, as they do on a tablet. */
.awsplit:has(.bfcd-cm) .awhbar-in{box-sizing:border-box;height:100%}
.awsplit .bfcd-cm .bfcd-bar{box-shadow:3px 3px 0 var(--br)}
@media (min-width:901px) and (max-width:1080px){.awsplit:has(.bfcd-cm){flex-direction:column}}
/* Night (MacPip) and Dark (iPip): the black card, its Copy button and its clock tiles stand out from the dark page. */
:root[data-theme=night] .bfcd-cm .bfcd-bar,:root[data-theme=dark] .bfcd-cm .bfcd-bar{border-color:rgba(250,246,236,.3)}
:root[data-theme=night] .bfcd-cm :is(.bfcd-copy,.bfcd-clock span),:root[data-theme=dark] .bfcd-cm :is(.bfcd-copy,.bfcd-clock span){background:#3a352b}
@media (max-width:760px){
  .bfcd-cm .bfcd-what{flex:1 1 auto}
  .bfcd-cm .bfcd-when{margin-left:0;flex:1 1 100%;justify-content:flex-start}
  .bfcd-cm .bfcd-when .bfcd-lbl{display:inline;font-size:13px;opacity:.8}
  .bfcd-cm .bfcd-code{order:3;flex:1 1 100%;justify-content:space-between}
  .bfcd-cm .bfcd-add{order:4;min-height:40px}
}
/* On a touch screen, Copy and the button are at least 40px tall. */
@media (pointer:coarse){
  .bfcd-cm .bfcd-copy{min-height:40px;padding:0 14px}
  .bfcd-cm .bfcd-add{min-height:40px}
}
/* A price during the sale: the old one struck through, smaller (never under 11px, so it stays readable in small print), then the new
   one, then the code beside it. */
.cmwas{font-size:max(.62em,11px);font-weight:400;opacity:.6;text-decoration-thickness:1.5px;margin-right:.12em;vertical-align:.12em}
.cmcode{display:inline-block;margin-left:7px;padding:2px 7px;border-radius:4px;background:#2563eb;color:#fff;font-size:11.5px;font-weight:600;line-height:1.35;letter-spacing:.02em;vertical-align:middle;white-space:nowrap}
/* The line under a buying page's heading: the code is filled in at checkout, or typed there. */
.cmnote{max-width:720px;margin:10px auto 18px;padding:10px 14px;border:1px dashed #2563eb;border-radius:8px;font-size:14px;line-height:1.45;text-align:center}
.cmnote b{color:#2563eb}
/* Night (MacPip) and Dark (iPip): a lighter blue on the dark page. CRT: the theme's own green. */
:root[data-theme=night] .cmnote b,:root[data-theme=dark] .cmnote b{color:#7aa2ff}
:root[data-theme=night] .cmnote,:root[data-theme=dark] .cmnote{border-color:#7aa2ff}
:root[data-theme=crt] .cmnote{border-color:currentColor}:root[data-theme=crt] .cmnote b{color:inherit}
/* A big price keeps the old one and the new one on one line; the words and the code wrap after them. */
.pr:has(.cmwas){flex-wrap:wrap;align-items:baseline;row-gap:6px}
.pr b:has(.cmwas){white-space:nowrap}
.pr .cmcode{margin-left:0}
/* Small prices (rows, buttons, tiles, notes): the old one nearly as big as the new one, on the same baseline. */
.sp-prices .cmwas,.sfl .cmwas,.sph-price .cmwas,.fnlens .cmwas,.fnticket .cmwas,.sidehowt .cmwas,.frrt .cmwas{font-size:.85em;vertical-align:baseline}
/* The picked length tile turns light in iPip's Dark theme: its old price stays readable on it. */
:root[data-theme=dark] .fnlens button.on .cmwas{opacity:.8}
/* iPip's price rows: the price never breaks, and when the row is too narrow the button moves under it, inside the card. */
.sp-prices{grid-template-columns:minmax(0,1fr)}
.sp-prices li{flex-wrap:wrap;row-gap:6px}
.sp-prices li>.btn,.sp-also>a.sm{margin-left:auto}
.sp-prices b:has(.cmwas){white-space:nowrap;text-align:right}
@media (max-width:560px){.sp-prices b .cmcode{display:block;width:max-content;margin:4px 0 0 auto}}
/* iPip's price pill under the phone ("From $25 $12.50 a week"): it is a flex box, so the words need a gap. */
.sph-price{gap:.3em}
/* Side Spot lengths (both sites): every tile stacks the old price over the new one, so the tiles in a row are the same height. */
.sfl .cmwas{display:block;margin:0}
.sidehowt td:has(.cmwas){white-space:nowrap}
/* MacPip's spot cards: the old price sits beside the big number, not inside it. */
.spcpr .cmwas{font:400 22px/1 var(--serif,Georgia,serif);vertical-align:baseline}
.spcpr .cmcode{margin-left:0}
/* MacPip's pricing buttons say "Buy X, $N with code CYBER50": they grow to two lines instead of spilling out of a fixed 50px. */
.spc .spnbuy{height:auto;min-height:50px;padding-top:9px;padding-bottom:9px;line-height:1.25;text-align:center}
/* MacPip's open seats beside the home list: "a week" wraps inside the card. */
.frrails .frrco .frrt small{white-space:normal}
/* The awards split shortens Black Friday's button to "Add yours" (public/awards.css); the sale card keeps its own words. */
.awsplit .bfcd-cm .bfcd-add:after{content:"See the prices"}
@media (prefers-reduced-motion:reduce){.bfcd-copy{transition:none}}
/* A button whose words end in a struck price ("..., $9.99 $4.99") is a flex box: a gap keeps the words apart. */
.btn:has(.cmwas){gap:.3em}
