/* [PPS-SNS-EVO] Subscribe & Save item by item: the SUBSCRIPTION tag and switch on each cart line (cart page and drawer),
   the line note, the panel for a cart with both kinds of items ("Subscriptions check out on their own order") and the
   paused checkout button. Our own calm look: cream card, ink text, a brass edge (the colours of cart-look.css).
   Phone first: no sideways scroll, every control at least 44px tall, text at least 12px. Loaded after cart-look.css. */

.sns-mx, .sns-ev-line, .sns-ev-row, .sns-mx-stop {
  --ev-ink: #1F2124; --ev-ink-2: #3A3D42; --ev-ink-3: #5F636A; --ev-card: #FBFAF6; --ev-paper: #F4F1EA;
  --ev-line: #E3DED2; --ev-line-2: #CFC8B8; --ev-brass: #7F6320; --ev-brass-2: #B08D3E; --ev-brass-soft: #F5EEDC;
}

/* ---------- one cart line: tag, switch, note ---------- */
.sns-ev-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 8px; min-width: 0; }
body.hv2 .cart-page .cart-item .cart-item-info > div.sns-ev-line { grid-column: 2 / -1; grid-row: 3; display: flex; color: var(--ev-ink-2); }
@media (min-width: 640px) { body.hv2 .cart-page .cart-item .cart-item-info > div.sns-ev-line { grid-column: 2 / 4; } }
.sns-ev-tag { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border: 1px solid var(--ev-ink);
  border-radius: 999px; background: var(--ev-ink); color: #FBFAF6; font-size: 12.5px; font-weight: 500; line-height: 1.3;
  letter-spacing: .02em; white-space: nowrap; }
.sns-ev-tag b { font-weight: 700; letter-spacing: .08em; color: #E9D6A6; }
.sns-ev-line .sns-ev-sw, .sns-ev-sw { display: inline-flex; margin: 0 !important; }
.sns-ev-flip { display: inline-flex; align-items: center; min-height: 44px; margin: 0; padding: 0 2px; border: 0; background: none;
  font: inherit; font-size: 14px; font-weight: 600; line-height: 1.2; color: var(--ev-brass); text-decoration: underline;
  text-decoration-color: rgba(127, 99, 32, .45); text-underline-offset: 4px; cursor: pointer; }
.sns-ev-flip:hover { text-decoration-color: currentColor; }
.sns-ev-flip:focus-visible { outline: 2px solid var(--ev-brass); outline-offset: 2px; border-radius: 4px; }
.sns-ev-line.is-sub .sns-ev-flip { color: var(--ev-ink-3); text-decoration-color: rgba(95, 99, 106, .45); font-weight: 500; }
.sns-ev-max { font-size: 13px; color: var(--ev-ink-3); line-height: 1.4; }
.sns-ev-note { flex: 1 0 100%; display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; line-height: 1.4; color: var(--ev-brass); }
.sns-ev-note::before { content: ""; flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: var(--ev-brass-2); }
.is-busy { opacity: .55; pointer-events: none; }

/* in the drawer, under the size */
.pcq-it .sns-ev-row { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; margin-top: 6px; }
.pcq-it .sns-ev-row .sns-ev-tag { font-size: 12px; padding: 3px 8px; }
.pcq-it .sns-ev-row .sns-ev-flip { font-size: 13.5px; }
.pcq-it .sns-ev-row .sns-ev-note { font-size: 13px; }
.pcq-it .sns-ev-row.is-sub .sns-ev-flip { color: var(--ev-ink-3); font-weight: 500; }

/* ---------- the panel for a cart with both kinds ---------- */
.sns-mx { position: relative; margin: 0 0 16px; padding: 18px 16px 12px; background: var(--ev-card); border: 1px solid var(--ev-line);
  border-radius: 10px; box-shadow: inset 3px 0 0 var(--ev-brass-2), 0 1px 2px rgba(31, 33, 36, .05); color: var(--ev-ink); text-align: left;
  scroll-margin-top: 96px; }
.sns-mx:focus { outline: none; }
.sns-mx:focus-visible { outline: 2px solid var(--ev-brass); outline-offset: 2px; }
@media (min-width: 640px) { .sns-mx { padding: 22px 24px 14px 26px; } }
.sns-mx .sns-mx-h { margin: 0 0 6px; font-family: var(--font-body, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif); font-size: 20px; font-weight: 700; line-height: 1.3;
  letter-spacing: -.005em; color: var(--ev-ink); text-transform: none; }
@media (min-width: 640px) { .sns-mx .sns-mx-h { font-size: 22px; } }
.sns-mx .sns-mx-p { margin: 0 0 14px; font-size: 15px; line-height: 1.5; color: var(--ev-ink-2); text-wrap: pretty; }
.sns-mx .sns-mx-alert { margin: 0 0 14px; padding: 10px 12px; border-radius: 8px; background: var(--ev-brass-soft); color: #4E3C10;
  font-size: 14px; font-weight: 600; line-height: 1.45; }
.sns-mx-groups { display: grid; gap: 12px; margin: 0 0 16px; }
@media (min-width: 760px) { .sns-mx-groups { grid-template-columns: 1fr 1fr; gap: 16px; } }
.sns-mx-g { min-width: 0; padding: 10px 12px 4px; background: #fff; border: 1px solid var(--ev-line); border-radius: 8px; }
.sns-mx .sns-mx-gh { margin: 0 0 2px; font-family: var(--font-body, inherit); font-size: 13px; font-weight: 700; letter-spacing: .06em;
  line-height: 1.4; text-transform: uppercase; color: var(--ev-ink-2); }
.sns-mx .sns-mx-gh span { font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ev-ink-3); }
.sns-mx-list { list-style: none; margin: 0; padding: 0; }
.sns-mx-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 12px; padding: 4px 0;
  border-top: 1px solid var(--ev-line); }
.sns-mx-row:first-child { border-top: 0; }
.sns-mx-item { flex: 1 1 160px; min-width: 0; padding: 8px 0; font-size: 15px; line-height: 1.35; overflow-wrap: anywhere; }
.sns-mx-name { font-weight: 600; color: var(--ev-ink); }
.sns-mx-size { display: inline-block; margin-left: 2px; padding: 1px 7px; border: 1px solid var(--ev-line-2); border-radius: 999px;
  background: var(--ev-paper); font-size: 12px; font-weight: 600; letter-spacing: .06em; color: var(--ev-ink-2); vertical-align: 1px; }
.sns-mx-q { color: var(--ev-ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sns-mx-sw { margin: 0; flex: 0 0 auto; }
.sns-mx-flip { display: inline-flex; align-items: center; min-height: 44px; margin: 0; padding: 0 2px; border: 0; background: none; font: inherit;
  font-size: 14px; font-weight: 600; color: var(--ev-brass); text-decoration: underline; text-decoration-color: rgba(127, 99, 32, .45);
  text-underline-offset: 4px; cursor: pointer; white-space: nowrap; }
.sns-mx-flip:hover { text-decoration-color: currentColor; }
.sns-mx-flip:focus-visible, .sns-mx-btn:focus-visible, .sns-mx-rm:focus-visible { outline: 2px solid var(--ev-brass); outline-offset: 2px; border-radius: 4px; }
.sns-mx-max { padding: 8px 0; font-size: 13px; color: var(--ev-ink-3); }
.sns-mx-btns { display: grid; gap: 10px; }
@media (min-width: 640px) { .sns-mx-btns { grid-template-columns: 1fr 1fr; } }
.sns-mx-btns form { margin: 0; }
.sns-mx-btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 50px; margin: 0; padding: 10px 16px;
  border: 1.5px solid var(--ev-ink); border-radius: 8px; background: #fff; color: var(--ev-ink); font: inherit; font-size: 15.5px;
  font-weight: 600; line-height: 1.25; text-align: center; cursor: pointer; transition: background .15s ease, color .15s ease; }
.sns-mx-btn:hover { background: var(--ev-paper); }
.sns-mx-btn.is-sub { background: var(--ev-ink); color: #FBFAF6; }
.sns-mx-btn.is-sub:hover { background: #33363B; }
.sns-mx-btn:disabled { opacity: .45; cursor: not-allowed; }
.sns-mx .sns-mx-small { margin: 10px 0 0; font-size: 13px; line-height: 1.45; color: var(--ev-ink-3); }
.sns-mx-rm { display: flex; align-items: center; justify-content: center; min-height: 44px; margin: 4px 0 0; font-size: 14px; font-weight: 500;
  color: var(--ev-ink-3); text-decoration: underline; text-decoration-color: rgba(95, 99, 106, .45); text-underline-offset: 4px; }
body.hv2 main .sns-mx a.sns-mx-rm { color: var(--ev-ink-3); }
.sns-mx-rm:hover { color: var(--ev-ink); }
.sns-mx-anchor { scroll-margin-top: 96px; }

/* the drawer's copy of the panel: tighter */
.sns-mx.sns-mx-drawer { margin: 0 0 12px; padding: 14px 12px 8px 15px; border-radius: 6px; }
.sns-mx.sns-mx-drawer[hidden] { display: none; }
.sns-mx.sns-mx-drawer .sns-mx-h { font-size: 18px; }
.sns-mx.sns-mx-drawer .sns-mx-p { margin-bottom: 10px; font-size: 14px; }
.sns-mx.sns-mx-drawer .sns-mx-groups { grid-template-columns: 1fr; gap: 8px; margin-bottom: 12px; }
.sns-mx.sns-mx-drawer .sns-mx-item { font-size: 14px; }
.sns-mx.sns-mx-drawer .sns-mx-btns { grid-template-columns: 1fr; gap: 8px; }
.sns-mx.sns-mx-drawer .sns-mx-btn { min-height: 48px; font-size: 15px; }
.sns-mx.sns-mx-drawer .sns-mx-note { margin: 8px 0 0; font-size: 13px; line-height: 1.45; color: var(--ev-ink-3); }

/* ---------- the paused checkout (inside the checkout form) ---------- */
.sns-mx-stop { margin: 0 0 4px; }
.sns-mx-stop p { margin: 0 0 12px; padding: 12px 14px; border: 1px solid var(--ev-line-2); border-radius: 8px; background: var(--ev-brass-soft);
  color: #4E3C10; font-size: 14px; line-height: 1.5; text-align: left; }
.sns-mx-stop p a.sns-mx-how { display: flex; align-items: center; min-height: 44px; margin: 2px 0 -10px; color: inherit; font-weight: 600;
  text-decoration: underline; text-underline-offset: 3px; }
.sns-mx-stop .sns-mx-off, .sns-mx-stop .sns-mx-off:hover { opacity: .45; cursor: pointer; transform: none; }   /* tapping it shows the panel */
.sns-mx { scroll-margin-top: 96px; }   /* clear of the fixed header when Checkout scrolls to it */
.sns-mx-stop + button[type="submit"] { display: none !important; }   /* the real button: checkout is paused */
body:has(#sns-mx-stop) .cx-stickybar .cx-st-btn { opacity: .45; }   /* the phone's sticky Checkout too (it scrolls to the panel) */
body.hv2 .cart-page .cart-summary .sns-mx-stop p { border-color: rgba(244, 241, 234, .26); background: rgba(244, 241, 234, .06);
  color: rgba(244, 241, 234, .9) !important; }
body.hv2 .cart-page .cart-summary .sns-mx-stop p a.sns-mx-how { color: #C9A456 !important; }
body.hv2 .cart-page .cart-summary #checkout-form .sns-mx-stop .btn.sns-mx-off,
body.hv2 .cart-page .cart-summary #checkout-form .sns-mx-stop .btn.sns-mx-off:hover { opacity: 1; background: rgba(244, 241, 234, .12) !important;
  color: rgba(244, 241, 234, .66) !important; border: 1px dashed rgba(244, 241, 234, .3) !important; box-shadow: none !important;
  transform: none !important; cursor: pointer; }

/* ---------- Checkout tapped with the "I agree" box empty: the box is outlined and nudged once ---------- */
.sns-consent .sns-agree.pps-need { box-shadow: 0 0 0 2px #b3531a; border-radius: 10px; animation: pps-need-nudge .45s ease 2; }
body.hv2 .cart-page .cart-summary .sns-consent .sns-agree.pps-need { box-shadow: 0 0 0 2px #F0A877; }
@keyframes pps-need-nudge { 0%, 100% { transform: none; } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
@media (prefers-reduced-motion: reduce) { .sns-consent .sns-agree.pps-need { animation: none; } }

/* ---------- Subscribe & Save's own small print, readable on phones (text 12px+, controls 44px+) ---------- */
.sns-po .sns-badge, .pcq-sns .sns-badge { font-size: 12px; }
.sns-po .sns-opt-p small, .sns-po .sns-more .sns-fine, .sns-po .sns-fine { font-size: 12px; }
.sns-po .sns-ev-same { margin: 10px 0 0; font-weight: 500; }
.sns-acc .sns-status, .sns-acc .sns-items .sns-i-p s, .sns-acc .sns-fine, .sns-empty .sns-fine { font-size: 12px; }
.sns-acc .sns-check { min-height: 44px; align-items: center; }
.sns-acc .sns-fine a, .sns-empty .sns-fine a { display: inline-block; padding: 13px 0; margin: -13px 0; }
