/* ============================================================================
   SchoolNotes v18 - STOREFRONT FIX + CHAT  (assets/css/site-v18.css)
   Loaded LAST in includes/header.php so it always wins over the older sheets.

   WHAT IT FIXES
   ---------------------------------------------------------------------------
   1. BOTTOM FLOATING ICONS - gone. Every legacy selector that could paint a
      floating chat / WhatsApp bubble near the bottom edge (or over the pinned
      Buy Now bar) is forced off, with width/height/overflow as well as
      display:none so nothing can be tapped invisibly.
   2. TOP HEADER ICONS - kept and styled: #header-chat-btn (AI assistant) and
      #header-wa-btn (WhatsApp), both in the header row, never floating.
   3. MOBILE BOTTOM LAYOUT - the "Total Cart Value / Go to Cart" bar and the
      app-style tab bar are re-laid out so they fit 320-430px with no
      horizontal overflow, honour the iOS safe-area inset, and no longer cover
      page content (body padding is reserved for every combination).
   4. MOBILE APP INSTALL CARD - the footer "Get the SchoolNotes App" card is
      re-flowed: text no longer wraps one word per line.
   5. CHAT PANEL - centred modal on desktop, bottom sheet on phones, always
      above the pinned bars, with the input padded clear of the safe area.
   ========================================================================== */

/* ---------------------------------------------------------------- 1. KILL */
.fw-cluster,
.fw-btn,
.fw-btn-ai,
.fw-btn-wa,
.fw-sheet,
.fw-tip,
.fab-tooltip,
.whatsapp-fab,
.js-whatsapp-fab,
.chatbot-launcher,
.chatbot-panel,
.chatbot-bubble,
.chatbot-avatar,
.pv8-chat,
.pv8-chat-bubble,
.pv8-chat-ic,
.pv8-chat-txt,
.pv8-chat-close,
.pulse-wa,
.pulse-chat,
.sn-help-fab,
.sn-wa-fab,
.float-help,
.floating-help {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  /* a stray left/right/bottom offset from an older sheet must not matter */
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  top: auto !important;
  transform: none !important;
  animation: none !important;
  z-index: -1 !important;
}

/* --------------------------------------------------- 2. TOP HEADER BUTTONS */
.header-chat-btn,
.header-wa-btn {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .10);
  color: #fff;
  font-size: 1.05rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: background .18s ease, transform .18s ease, border-color .18s ease;
}
.header-wa-btn { text-decoration: none; border-color: rgba(37, 211, 102, .5); color: #7ef0ab; }
.header-chat-btn:hover { background: rgba(255, 255, 255, .22); }
.header-wa-btn:hover { background: rgba(37, 211, 102, .22); }
.header-chat-btn:active, .header-wa-btn:active { transform: scale(.94); }
.header-chat-btn:focus-visible, .header-wa-btn:focus-visible { outline: 3px solid #ffd66b; outline-offset: 2px; }
.header-chat-btn[aria-expanded="true"] { background: #ffd66b; color: #14335c; border-color: #ffd66b; }
.header-chat-btn::after {
  content: ''; position: absolute; margin: -30px 0 0 26px;
  width: 8px; height: 8px; border-radius: 50%; background: #25d366;
  box-shadow: 0 0 0 2px #14335c;
}
@media (max-width: 900px) {
  .header-chat-btn, .header-wa-btn { width: 38px; height: 38px; font-size: 1rem; border-radius: 11px; }
}
@media (max-width: 400px) {
  .header-chat-btn, .header-wa-btn { width: 34px; height: 34px; font-size: .95rem; }
}

/* ------------------------------------------------ 3. MOBILE BOTTOM LAYOUT */
:root { --v18-nav-h: 58px; --v18-mini-h: 54px; }

.cart-mini-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 92;
  display: none;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  padding: 9px 12px calc(9px + env(safe-area-inset-bottom, 0px));
  background: #14335c;
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 -10px 24px -14px rgba(9, 40, 78, .6);
}
.cart-mini-bar.is-visible { display: flex; }
.cmb-info { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.cmb-label {
  font-size: .66rem; letter-spacing: .09em; text-transform: uppercase;
  color: #b9cfe9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cmb-total { font-size: 1.06rem; font-weight: 800; line-height: 1.15; white-space: nowrap; }
.cmb-cta {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px;
  background: #E8A93A; color: #14335c; font-weight: 800; font-size: .92rem;
  padding: 10px 15px; border-radius: 999px; text-decoration: none;
  max-width: 48%; white-space: nowrap;
}
.cmb-close {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .34); background: transparent;
  color: #fff; font-size: .72rem; line-height: 1; display: grid; place-items: center; cursor: pointer;
}
/* the mini bar only exists under 900px (desktop shows the mini-cart drawer) */
@media (min-width: 901px) { .cart-mini-bar { display: none !important; } }

/* The tab bar sits at the very bottom; the mini bar stacks directly above it. */
.mobile-app-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: grid; grid-template-columns: repeat(5, 1fr);
  width: 100%; max-width: 100vw; box-sizing: border-box;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: #fff; border-top: 1px solid #e3e9f2;
  box-shadow: 0 -8px 20px -16px rgba(9, 40, 78, .5);
}
.mobile-app-nav a {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; min-width: 0; padding: 8px 2px 7px;
  font-size: .66rem; font-weight: 600; color: #5C6270; text-decoration: none;
}
.mobile-app-nav a i { font-size: 1.06rem; }
.mobile-app-nav a span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mobile-app-nav .app-nav-badge {
  position: absolute; margin: -26px 0 0 20px; min-width: 17px; height: 17px;
  padding: 0 4px; border-radius: 999px; background: #e5352b; color: #fff;
  font-size: .62rem; font-weight: 800; line-height: 17px; text-align: center;
}
@media (min-width: 901px) { .mobile-app-nav { display: none !important; } }

/* One rule that reserves exactly the right space for whatever is on screen,
   so the last row of content is never hidden behind the bottom bars. */
@media (max-width: 900px) {
  body { padding-bottom: calc(var(--v18-nav-h) + env(safe-area-inset-bottom, 0px)) !important; }
  body.has-cart-mini-bar:not(.has-sticky-bar) {
    padding-bottom: calc(var(--v18-nav-h) + var(--v18-mini-h) + env(safe-area-inset-bottom, 0px)) !important;
  }
  body.has-scroll-down .cart-mini-bar { transform: translateY(0) !important; }
  .cart-mini-bar.is-visible { bottom: calc(var(--v18-nav-h) + env(safe-area-inset-bottom, 0px)) !important; }
  /* pages that carry their own pinned buy/pay bar keep that bar above the tabs */
  body.has-sticky-bar .cart-mini-bar { display: none !important; }
  .pv7-sticky, .sticky-buy-bar, .pinned-checkout-bar {
    bottom: calc(var(--v18-nav-h) + env(safe-area-inset-bottom, 0px)) !important;
    left: 0; right: 0; width: 100%; max-width: 100vw; box-sizing: border-box;
  }
  /* keep the WhatsApp buy-option link inside the pinned bar usable */
  .pv7-sticky .pv7-btn { min-width: 0; }
}
@media (max-width: 430px) {
  .cmb-label { display: none; }
  .cmb-total { font-size: 1rem; }
  .cmb-cta { padding: 9px 13px; font-size: .88rem; }
  .mobile-app-nav a { font-size: .62rem; }
  .mobile-app-nav a i { font-size: 1rem; }
}

/* ---------------------------------------- 4. MOBILE "GET THE APP" CARD */
.app-download-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: nowrap;
}
.app-download-cta .adc-copy { min-width: 0; flex: 1 1 auto; }
.app-download-cta .adc-copy strong { display: block; font-size: 1rem; line-height: 1.3; }
.app-download-cta .adc-copy span { display: block; font-size: .875rem; line-height: 1.5; }
.app-download-cta .adc-btn { flex: 0 0 auto; white-space: nowrap; }
.app-download-cta .adc-hint { flex: 1 1 100%; }
/* v21: rating line + 3 feature bullets under the title, and a dedicated
   column for the button + install hint so they stack tidily together. */
.app-download-cta .adc-rating { display: flex; align-items: center; gap: 4px; font-size: .78rem !important; color: #FFD873 !important; }
.app-download-cta .adc-rating .fa-star,
.app-download-cta .adc-rating .fa-star-half-stroke { font-size: .72rem; }
.app-download-cta .adc-features { display: flex !important; flex-wrap: wrap; gap: 4px 14px; margin-top: 2px; }
.app-download-cta .adc-features span { display: inline-flex !important; align-items: center; gap: 5px; font-size: .74rem !important; color: rgba(255,255,255,.78) !important; white-space: nowrap; }
.app-download-cta .adc-features i { color: #FFD873; font-size: .7rem; }
.app-download-cta .adc-cta-col { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: 0 0 auto; }
.app-download-cta .adc-cta-col .adc-hint { flex: none; text-align: right; }
@media (max-width: 760px) {
  .app-download-cta .adc-features { gap: 3px 10px; }
  .app-download-cta .adc-cta-col { align-items: stretch; width: 100%; }
  .app-download-cta .adc-cta-col .adc-hint { text-align: left; }
}
@media (max-width: 760px) {
  .app-download-cta {
    flex-direction: column;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px !important;
    text-align: left;
  }
  .app-download-cta .adc-icon { display: flex; }
  .app-download-cta .adc-copy strong { font-size: 1.05rem; }
  .app-download-cta .adc-copy span { font-size: .9rem; line-height: 1.55; }
  .app-download-cta .adc-btn { width: 100%; justify-content: center; }
  .app-download-cta .adc-hint { font-size: .8rem; }
}

/* ------------------------------------------------------- 5. CHAT PANEL */
.sn18-chat { position: fixed; inset: 0; z-index: 1400; }
.sn18-chat[hidden] { display: none; }
.sn18-backdrop {
  position: absolute; inset: 0; background: rgba(9, 21, 38, .55);
  opacity: 0; transition: opacity .2s ease;
}
.sn18-chat.is-in .sn18-backdrop { opacity: 1; }
.sn18-panel {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -46%) scale(.97);
  width: min(560px, calc(100vw - 32px));
  max-height: min(76vh, 720px);
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border-radius: 20px;
  box-shadow: 0 30px 70px -24px rgba(9, 40, 78, .6);
  opacity: 0; transition: opacity .22s ease, transform .22s ease;
}
.sn18-chat.is-in .sn18-panel { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.sn18-head {
  display: flex; align-items: center; gap: 11px; padding: 13px 14px;
  background: linear-gradient(120deg, #0f2b4d, #1A67C4); color: #fff;
}
.sn18-ava, .sn18-ava-s {
  flex: 0 0 auto; width: 36px; height: 36px; border-radius: 11px;
  display: grid; place-items: center; color: #fff; font-size: .95rem;
  background: linear-gradient(135deg, #1a73e8, #0b5fce);
}
.sn18-id { flex: 1 1 auto; min-width: 0; line-height: 1.25; }
.sn18-id strong { display: block; font-size: .95rem; font-weight: 800; }
.sn18-id small { display: block; font-size: .74rem; color: #cfe0f7; }
.sn18-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: #25d366; margin-right: 5px; animation: sn18pulse 2.2s infinite;
}
@keyframes sn18pulse { 70% { box-shadow: 0 0 0 9px rgba(37, 211, 102, 0) } 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .6) } }
.sn18-wa, .sn18-x {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center; font-size: .95rem; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .12); color: #fff;
}
.sn18-wa { color: #8df3b4; border-color: rgba(37, 211, 102, .5); }
.sn18-body {
  flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 14px; background: #f6f9fd; display: flex; flex-direction: column; gap: 10px;
}
.sn18-msg { display: flex; gap: 8px; max-width: 100%; }
.sn18-me { justify-content: flex-end; }
.sn18-bubble {
  max-width: 82%; padding: 10px 13px; border-radius: 15px;
  font-size: .9rem; line-height: 1.55; word-break: break-word;
  background: #fff; color: #1e3049; border: 1px solid #e3ebf6;
}
.sn18-bot .sn18-bubble { border-bottom-left-radius: 5px; }
.sn18-me .sn18-bubble {
  background: #1A67C4; color: #fff; border-color: #1A67C4; border-bottom-right-radius: 5px;
}
.sn18-bubble a { color: #0b5fce; font-weight: 700; text-decoration: underline; }
.sn18-me .sn18-bubble a { color: #ffe9b8; }
.sn18-cards { display: flex; flex-direction: column; gap: 8px; margin: 2px 0 2px 44px; }
.sn18-card {
  display: block; padding: 10px 12px; border: 1px solid #dbe6f4; border-radius: 13px;
  background: #fff; text-decoration: none; color: #1e3049;
  transition: border-color .16s ease, transform .16s ease;
}
.sn18-card:hover { border-color: #1A67C4; transform: translateY(-1px); }
.sn18-card-top strong { display: block; font-size: .86rem; font-weight: 700; line-height: 1.4; }
.sn18-card-meta { display: block; font-size: .75rem; color: #5C6270; margin-top: 2px; }
.sn18-card-buy { display: flex; align-items: center; gap: 7px; margin-top: 6px; font-size: .85rem; }
.sn18-card-buy b { color: #0d6b3c; font-weight: 800; }
.sn18-card-buy s { color: #8b98a8; font-weight: 500; }
.sn18-card-buy em { font-style: normal; font-size: .7rem; font-weight: 800; color: #0a7d43; background: #e6f7ec; border-radius: 999px; padding: 2px 7px; }
.sn18-card-buy i { margin-left: auto; color: #1A67C4; }
.sn18-isp .sn18-bubble { display: inline-flex; gap: 4px; align-items: center; padding: 13px; }
.sn18-isp .sn18-bubble i {
  width: 6px; height: 6px; border-radius: 50%; background: #93a6bd;
  animation: sn18bounce 1.15s infinite;
}
.sn18-isp .sn18-bubble i:nth-child(2) { animation-delay: .16s }
.sn18-isp .sn18-bubble i:nth-child(3) { animation-delay: .32s }
@keyframes sn18bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .5 } 30% { transform: translateY(-4px); opacity: 1 } }
.sn18-chips {
  display: flex; gap: 7px; overflow-x: auto; padding: 9px 12px 2px;
  background: #fff; border-top: 1px solid #eef3fa; scrollbar-width: none;
}
.sn18-chips::-webkit-scrollbar { display: none; }
.sn18-chip {
  flex: 0 0 auto; border: 1px solid #cddcef; background: #f4f8fd; color: #17395f;
  border-radius: 999px; padding: 7px 12px; font-size: .8rem; font-weight: 600;
  cursor: pointer; white-space: nowrap; font-family: inherit;
}
.sn18-chip:hover { background: #e6f0fc; border-color: #1A67C4; color: #0b5fce; }
.sn18-form { display: flex; gap: 8px; padding: 9px 12px; background: #fff; }
.sn18-form input {
  flex: 1 1 auto; min-width: 0; height: 44px; padding: 0 14px;
  border: 1px solid #cddcef; border-radius: 12px; font-size: 16px; color: #1e3049; background: #fff;
}
.sn18-form input:focus { outline: none; border-color: #1A67C4; box-shadow: 0 0 0 3px rgba(26, 103, 196, .14); }
.sn18-form button {
  flex: 0 0 auto; width: 46px; height: 44px; border: 0; border-radius: 12px;
  background: #1A67C4; color: #fff; font-size: 1rem; cursor: pointer;
}
.sn18-form button:hover { background: #0b5fce; }
.sn18-foot { margin: 0; padding: 0 12px calc(10px + env(safe-area-inset-bottom, 0px)); font-size: .72rem; color: #6b7b8f; background: #fff; }
.sn18-foot a { color: #0b5fce; font-weight: 600; }
body.sn18-open { overflow: hidden; }
/* When the chat panel is open, opt the chat out of any page-wide blur so
   focusing the textbox on a phone can never paint the chat messages.
   (See assets/css/site-v16-focus.css and assets/js/protect.js for the
   pay-guard + chat-guard plumbing.) */
.sn18-chat, .sn18-chat * { filter: none !important; }

/* Voice-input (mic) button rendered by chat-v18.js when SpeechRecognition is
   supported. Sits to the LEFT of the send button, same height as the input. */
.sn18-mic {
  flex: 0 0 auto; width: 44px; height: 44px; border: 1px solid #d4dfee;
  background: #fff; color: #1A67C4; border-radius: 12px; cursor: pointer; font-size: 1rem;
  display: grid; place-items: center; padding: 0; line-height: 1;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.sn18-mic:hover { background: #e6f0fc; border-color: #1A67C4; }
.sn18-mic.is-on { background: #ef4444; color: #fff; border-color: #ef4444; animation: sn18micPulse 1.2s ease-in-out infinite; }
@keyframes sn18micPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(239,68,68,.55); }
  50%     { box-shadow: 0 0 0 12px rgba(239,68,68,0); }
}

/* "Jump to latest" pill: appears only when user scrolls UP through the chat
   history on long ones. Hidden by default. */
.sn18-jump {
  position: absolute; right: 14px; bottom: 132px; z-index: 3;
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid #cddcef;
  background: #fff; color: #1A67C4; font-size: .9rem; cursor: pointer;
  box-shadow: 0 8px 18px -10px rgba(9,40,78,.5);
  display: grid; place-items: center;
  animation: sn18JumpIn .22s ease-out;
}
.sn18-jump[hidden] { display: none; }
@keyframes sn18JumpIn { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }

/* Error/escalation bubble: shows when the fetch fails. Distinct red tone. */
.sn18-err .sn18-bubble { background: #FEF2F2; border-color: #FCA5A5; color: #7f1d1d; }
.sn18-err .sn18-err-bubble i { color: #dc2626; margin-right: 5px; }
.sn18-err-bubble .sn18-retry {
  display: inline-block; margin-left: 8px; padding: 4px 10px; border-radius: 999px;
  background: #1A67C4; color: #fff; border: 0; font-size: .78rem; font-weight: 700; cursor: pointer;
}
.sn18-err-bubble .sn18-retry:hover { background: #0b5fce; }

/* Restored message rows (reloaded from localStorage) get a soft tint and
   a hairline corridor as a continuity cue. */
.sn18-msg.inbox { opacity: .94; }
.sn18-msg.inbox + .sn18-msg:not(.inbox) { box-shadow: inset 0 6px 6px -6px rgba(9,40,78,.06); }

@media (max-width: 760px) {
  .sn18-panel {
    left: 0; right: 0; top: auto; bottom: 0; transform: translateY(14px);
    width: 100%; max-width: 100vw; max-height: 86vh; border-radius: 18px 18px 0 0;
  }
  .sn18-chat.is-in .sn18-panel { transform: none; }
  .sn18-bubble { max-width: 86%; font-size: .92rem; }
  .sn18-cards { margin-left: 0; }
  .sn18-form { position: relative; z-index: 2; }
  .sn18-form input { height: 46px; font-size: 16px; }    /* avoids iOS zoom-on-focus */
  .sn18-mic { width: 46px; height: 46px; }
  .sn18-form button[type="submit"] { width: 48px; height: 46px; }
  .sn18-jump { bottom: 152px; }
}
@media (prefers-reduced-motion: reduce) {
  .sn18-panel, .sn18-backdrop, .sn18-dot, .sn18-isp .sn18-bubble i,
  .sn18-mic, .sn18-jump, .sn18-err-bubble .sn18-retry { transition: none !important; animation: none !important; }
}

/* ---------------------------------------------- 6. ACCOUNT DASHBOARD v18 */
.dash-v18 {
  display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin: 0 0 20px;
}
.dv18-card {
  display: flex; gap: 12px; align-items: flex-start;
  background: #fff; border: 1px solid #e3ebf6; border-radius: 16px; padding: 15px 16px;
  box-shadow: 0 2px 10px rgba(20, 51, 92, .06);
}
.dv18-card strong { display: block; font-size: 1.06rem; color: #0f2b4d; line-height: 1.3; }
.dv18-card span { display: block; font-size: .84rem; color: #5C6270; line-height: 1.5; }
.dv18-ic {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center; color: #fff; font-size: 1rem;
}
.dv18-ic.is-green { background: linear-gradient(135deg, #0f8c50, #0b7a43); }
.dv18-ic.is-blue  { background: linear-gradient(135deg, #1a73e8, #0b5fce); }
.dv18-ic.is-gold  { background: linear-gradient(135deg, #E8A93A, #C9860F); }
.dv18-ic.is-pink  { background: linear-gradient(135deg, #d6478e, #a8246a); }
.dv18-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 9px; }
.dv18-btns .btn { white-space: nowrap; }
@media (max-width: 560px) {
  .dash-v18 { grid-template-columns: 1fr; }
  .dv18-btns .btn { flex: 1 1 auto; justify-content: center; }
}


/* ================= v19 ================= */
/* 1) Legacy bottom-side floating AI-chat / WhatsApp widgets are killed.
      NOTE: .chatbot-panel is intentionally NOT listed - that is the new chat panel. */
.fw-cluster,.fw-btn,.fw-sheet,.whatsapp-fab,.chatbot-launcher,.fab-tooltip,
.pv7-wa,.pv8-chat,.pulse-wa,.pulse-chat{
  display:none!important;visibility:hidden!important;opacity:0!important;
  pointer-events:none!important;z-index:-1!important;height:0!important;width:0!important;
}
/* 2) The TOP header icons stay (mobile included). */
@media (max-width:600px){
  .header-chat-btn,.header-wa-btn{display:inline-flex!important;visibility:visible!important;opacity:1!important}
}
/* 3) Bottom sticky Buy-Now bar: full width, no horizontal overflow, safe-area aware. */
html,body{max-width:100%;overflow-x:hidden}
.pv7-sticky{left:0;right:0;width:100%;max-width:100vw;box-sizing:border-box}
.pv7-sticky .pv7-btn-buy{min-width:0;flex:1 1 auto}
body{padding-bottom:calc(150px + env(safe-area-inset-bottom,0px))!important}
@supports(padding:max(0px)){
  .pv7-sticky{padding-bottom:max(0px,env(safe-area-inset-bottom))}
}
@media (max-width:414px){
  .pv7-sticky{display:flex;align-items:center;gap:8px;padding-left:10px;padding-right:10px}
  .pv7-sticky .pv7-btn-buy{font-size:14px;padding:11px 12px}
  .mobile-app-nav,.cart-mini-bar{max-width:100vw;box-sizing:border-box}
}

/* ================= v19.1 ================= */
/* App-promo card on phones: the flex row collapsed the text into a ~40px column,
   breaking words onto separate lines. Stack it and let text breathe. */
@media (max-width:600px){
  .app-download-cta{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;text-align:center!important;gap:12px!important;width:100%!important;box-sizing:border-box}
  .app-download-cta *{min-width:0!important;max-width:100%!important;white-space:normal!important;word-break:normal!important;overflow-wrap:break-word!important;line-height:1.45!important}
  .app-download-cta img,.app-download-cta svg{max-width:72px!important}
}
.app-download-cta{flex-wrap:wrap}
.app-download-cta .btn,.app-download-cta a{white-space:nowrap}
