/* checkout-c.css (package C v2, 13.11.2026): the phone layout of /checkout, so the payment buttons start higher.
   Presentation only. Phones only (max-width:520px): a wider screen is drawn exactly as before.
   Nothing is removed: every block stays on the page with the same text, drawn tighter, folded or moved.
   No text here is under 12px (the "Bestseller" badge keeps its own size) and no tap target is under 32px.
   Three helpers are drawn by checkout-c.js (without that script this file only tightens the page):
     .cc-more    = "Show all N scents" under the first 3 order lines of a long cart (5 scents or more)
     .cc-below   = the thank-you wall box (#shout-wrap) once it is moved under the payment buttons
     .cc-bar     = the bar at the bottom of the screen with the total and "Continue to payment"
   Taking the <link> and <script> of package C out of checkout.php puts the page back exactly as before. */
.cc-more,.cc-bar{display:none}
@media (max-width:520px){
  /* page and card */
  .wrap{padding-top:8px}
  #cart.card{padding:10px 12px 14px}
  #cart .more{margin-left:-12px;margin-right:-12px}
  #cart .more-head{padding-left:12px;padding-right:12px}
  #cart h1{font-size:18px;margin:0 0 2px}

  /* order lines: photo, name (+ Bestseller) on one row, "Car diffuser, 8 ml" and the price on the next, quantity */
  #cart .line{grid-template-columns:44px minmax(0,1fr) auto;gap:10px;padding:6px 0;align-items:center}
  #cart .line .thumb{width:44px;height:44px;border-radius:8px}
  #cart .line .info{display:flex;flex-wrap:wrap;align-items:center;column-gap:6px;row-gap:2px;min-width:0;font-size:12px;line-height:1.3;color:var(--ink-soft)}
  #cart .line .name{order:-2;flex:0 1 auto;font-size:14.5px;line-height:1.2;color:var(--ink)}
  #cart .line .sub{display:contents}
  #cart .line .best{order:-1;margin:0}
  #cart .line .info::after{content:"";order:-1;flex:1 0 100%;height:0}
  #cart .line .unit{margin:0;font-size:12.5px;line-height:1.3;color:var(--ink)}
  #cart .line .right{gap:2px}
  #cart .line .qty .step{width:34px;height:34px;font-size:18px}
  #cart .line .count{min-width:18px;font-size:14.5px}
  #cart .line .right .linetotal{font-size:12.5px}

  /* a long cart: the first 3 lines, then "Show all N scents" (checkout-c.js sets .cc-fold; without it nothing folds) */
  #lines.cc-fold>li:nth-child(n+4){display:none}
  .cc-more{display:block;width:100%;min-height:36px;margin:4px 0 0;padding:4px 10px;border:1px solid var(--line);border-radius:10px;background:#fffaf1;color:var(--ink);font:inherit;font-size:13.5px;font-weight:500;text-align:center;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
  .cc-more:focus-visible,.cc-bar-go:focus-visible{outline:2px solid var(--gold);outline-offset:2px}

  /* free shipping / deal box: same text and button, tighter */
  #cart .ship-box{margin:8px 0 2px}
  #cart .ship-progress{padding:6px 10px 7px}
  #cart .ship-progress[data-nudge="1"]{padding:0 10px 7px}
  #cart .ship-progress-text{font-size:13px;line-height:1.3}
  #cart .ship-progress .bar{margin-top:5px;height:5px}
  #cart .ship-progress[data-nudge="1"] .bar{margin-top:0}
  #cart .third-nudge,#cart .ship-progress[data-nudge="1"]~.third-nudge:not([hidden]){padding:6px 6px 6px 10px;gap:4px 6px}
  #cart .third-nudge-text,#cart .ship-progress[data-nudge="1"]~.third-nudge .third-nudge-text{font-size:12.5px;line-height:1.28;flex-basis:140px}
  #cart .third-nudge-add,#cart .ship-progress[data-nudge="1"]~.third-nudge .third-nudge-add{min-height:36px;padding:0 10px;font-size:12.5px}

  /* Delivery: each choice on one compact card. Standard stays selected as before; USPS Priority Mail is a normal card
     with its own radio (one tap selects it), tinted gold until it is chosen so it is easy to notice. */
  #cart .dlv{margin:6px 0 0}
  #cart .dlv legend{font-size:13.5px;margin:0 0 3px}
  #cart .dlv-opt{align-items:center;margin:0 0 5px;padding:6px 10px;gap:8px;border-radius:10px;min-height:44px}
  #cart .dlv-opt input{margin:0}
  #cart .dlv-name{font-size:13.5px;line-height:1.25}
  #cart .dlv-time,#cart .dlv-by{font-size:12px;line-height:1.28}
  #cart .dlv-price{font-size:14px;line-height:1.25}
  #cart .dlv-note{margin:0;font-size:12px;line-height:1.3}
  #cart #dlv-opt-pri:not(.on){border-color:var(--gold);background:var(--gold-soft)}
  #cart #dlv-opt-pri .dlv-by{font-weight:700}

  /* totals: same rows, tighter */
  #cart .totals{margin-top:4px}
  #cart .totals div{padding:1px 0;font-size:14.5px;line-height:1.35}
  #cart .totals .grand{margin-top:3px;padding-top:5px;padding-bottom:0;font-size:18px;line-height:1.25}

  /* gift card line and "No account needed": tighter */
  #cart .gift{margin:6px 0 0}
  #cart .gift-open{min-height:34px;padding:5px 10px;border-radius:10px;font-size:13px;line-height:1.3}
  #cart .no-account{margin:6px 0 0;font-size:12px;line-height:1.3}
  #cart #wallets{margin-top:8px!important}
  #cart .pay{margin-top:8px}
  #cart .pay-status + .pay{margin-top:6px}

  /* thank-you wall: still ticked by default; checkout-c.js moves it under the payment buttons (.cc-below).
     Until it is moved (or if that script does not run) it stays above them, drawn tighter. */
  #cart .shout{margin:6px 0 0;font-size:12.5px;color:var(--ink)}
  #cart .shout label{flex:1 1 0;min-width:0}
  #cart .shout-more{color:var(--ink-soft)}
  #cart .shout.cc-below{margin:12px 0 0;padding:6px 10px;border:1px solid var(--line);border-radius:10px;background:#fffaf2;font-size:13px}
  #cart .shout.cc-below label{min-height:32px}
  #cart .shout.cc-below .shout-why{width:32px;height:32px;font-size:14px;line-height:30px}
  #cart .shout.cc-below .shout-more{background:#fff}

  /* the bar at the bottom of the screen (checkout-c.js shows it only while the payment buttons are off screen).
     z-index above PayPal's own button frame, so the two can never be drawn through each other. */
  .cc-bar{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:2000;align-items:center;gap:12px;padding:8px 14px calc(8px + env(safe-area-inset-bottom,0px));padding-left:max(14px,env(safe-area-inset-left));padding-right:max(14px,env(safe-area-inset-right));background:#fff;border-top:1px solid var(--line);box-shadow:0 -4px 14px rgba(34,19,13,.12);transition:transform .2s ease}
  .cc-bar[data-off="1"]{transform:translateY(110%);visibility:hidden;transition:transform .2s ease,visibility 0s .2s}
  .cc-bar-t{flex:none;display:flex;flex-direction:column;line-height:1.15}
  .cc-bar-t span{font-size:12px;color:var(--ink-soft)}
  .cc-bar-t strong{font-size:18px;font-weight:700;font-variant-numeric:tabular-nums}
  .cc-bar-go{flex:1;min-width:0;min-height:46px;padding:0 12px;border:0;border-radius:999px;background:var(--ink);color:#fbf2e3;font:inherit;font-size:15.5px;font-weight:600;cursor:pointer}
  html.cc-has-bar .wrap{padding-bottom:calc(98px + env(safe-area-inset-bottom,0px))}
}
@media (max-width:520px) and (prefers-reduced-motion:reduce){.cc-bar,.cc-bar[data-off="1"]{transition:none}}
