/* [PPS-SNS] Subscribe & Save: product page purchase options, the cart switch, the consent box, the cart drawer row, the
   account page. Everything is scoped to .sns-* / .pcq-sns classes, so nothing else on the site changes. */
/* fixed colours (not the page's --ink): the cart summary is a dark panel on the v2 site, and these boxes are light cards */
.sns-po, .sns-cart, .sns-consent, .sns-acc, .sns-done { --sns-ink: #1F2124; --sns-mute: #5F636A; --sns-line: #E3DED2;
  --sns-green: #0F7A3A; --sns-soft: #F3FAF5; --sns-paper: #F7F5F0; font-family: var(--font-body, inherit); color: var(--sns-ink); }
.sns-cart *, .sns-consent * { color: inherit; }
.sns-cart .sns-badge { color: #fff; }
.sns-cart .sns-why { color: #8a4b12; }
.sns-cart .sns-off, .sns-cart .sns-timeline span, .sns-consent .sns-terms { color: var(--sns-mute); }
.sns-consent .sns-agree b, .sns-consent .sns-need { color: #b3531a; }
/* product page: while Subscribe & Save is picked, the volume and free-vial boxes (which don't apply to it) step back,
   can't be tapped, and say why */
form.sns-sub-on .bundle-save { position: relative; }
form.sns-sub-on .bundle-save > * { opacity: .4; filter: grayscale(.6); pointer-events: none; transition: opacity .15s; }
form.sns-sub-on .bundle-save::after { content: "Deals apply to one-time purchases only"; display: block; margin-top: 8px; text-align: center;
  font-size: 12.5px; font-weight: 600; color: #5F636A; }

/* ---------- product page */
.sns-po { margin: 18px 0 14px; display: flex; flex-direction: column; gap: 8px; }
.sns-po .sns-po-h { margin-bottom: 4px; }
.sns-opt { position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: start; gap: 10px;
  padding: 13px 14px; background: #fff; border: 1.5px solid var(--sns-line); border-radius: 14px; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.sns-opt:hover { border-color: #A39C8C; }
.sns-opt.is-on { border: 2px solid var(--sns-ink); padding: 12.5px 13.5px; box-shadow: 0 4px 14px rgba(31, 33, 36, .08); }
.sns-opt-sub.is-on { background: var(--sns-soft); border-color: var(--sns-green); }
.sns-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
/* the dot sits level with the option's title line (20px dot, 15px x 1.3 title) */
.sns-dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #8C8577; background: #fff; box-sizing: border-box; }
.sns-opt.is-on .sns-dot { border: 6px solid var(--sns-ink); }
.sns-opt-sub.is-on .sns-dot { border-color: var(--sns-green); }
.sns-opt input:focus-visible ~ .sns-dot { outline: 2px solid var(--sns-ink); outline-offset: 2px; }
.sns-opt-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sns-opt-t { font-size: 15px; font-weight: 700; line-height: 1.3; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 20px; }
.sns-opt-s { font-size: 12.5px; color: var(--sns-mute); line-height: 1.35; text-wrap: pretty; }
.sns-badge { display: inline-block; background: var(--sns-green, #0F7A3A); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .04em;
  padding: 3px 8px; border-radius: 999px; line-height: 1.2; white-space: nowrap; text-transform: uppercase; }
.sns-opt-p { display: flex; flex-direction: column; align-items: flex-end; align-self: center; text-align: right; line-height: 1.2; white-space: nowrap; }
.sns-opt-p b { font-size: 17px; font-weight: 800; }
.sns-opt-p s { font-size: 12px; color: var(--sns-mute); }
.sns-opt-p small { font-size: 11.5px; color: var(--sns-mute); margin-top: 2px; }
.sns-opt-sub .sns-opt-p b { color: var(--sns-green); }
/* the frequency panel belongs to the Subscribe & Save card: while it is picked, the two read as one green card */
.sns-more { margin: 0; padding: 12px 13.5px 14px; background: var(--sns-soft); border: 2px solid var(--sns-green); border-top: 1px solid #CFE6D7;
  border-radius: 0 0 14px 14px; }
.sns-more[hidden] { display: none; }
.sns-po.sns-is-sub .sns-opt-sub { border-bottom: 0; border-radius: 14px 14px 0 0; padding-bottom: 14.5px; box-shadow: none; }
.sns-po.sns-is-sub .sns-more { margin-top: -8px; }
.sns-po .sns-note { margin: 0 0 12px; padding: 8px 10px; background: #fff; border-radius: 8px; font-size: 12.5px; font-weight: 600; line-height: 1.45; color: var(--sns-green); }
.sns-more-h { font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.sns-pills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sns-pill { position: relative; cursor: pointer; }
.sns-pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sns-pill span { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 6px; background: #fff;
  border: 1.5px solid #CFC9BC; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--sns-ink); text-align: center; transition: background .12s, border-color .12s; }
.sns-pill:hover span { border-color: #8C8577; }
.sns-pill input:checked + span { background: var(--sns-green); border-color: var(--sns-green); color: #fff; font-weight: 700; box-shadow: 0 2px 8px rgba(15, 122, 58, .22); }
.sns-pill input:checked + span::before { content: ""; width: 9px; height: 5px; margin-top: -3px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); flex: 0 0 auto; }
.sns-pill input:focus-visible + span { outline: 2px solid var(--sns-ink); outline-offset: 2px; }
.sns-ticks { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.sns-ticks li { position: relative; padding-left: 22px; font-size: 13px; line-height: 1.4; text-wrap: pretty; }
.sns-ticks li::before { content: ""; position: absolute; left: 2px; top: 4px; width: 11px; height: 6px; border-left: 2px solid var(--sns-green);
  border-bottom: 2px solid var(--sns-green); transform: rotate(-45deg); }
/* (two-class selectors for paragraphs: they outrank the site's ".hv2 p { margin: 0 }") */
.sns-fine { margin: 10px 0 0; font-size: 11.5px; line-height: 1.5; color: var(--sns-mute); }
.sns-acc .sns-fine { margin: 10px 0 0; }
.sns-fine a { color: inherit; text-decoration: underline; }
.sns-more .sns-fine { margin: 12px 0 0; padding-top: 10px; border-top: 1px solid #CFE6D7; font-size: 11.5px; line-height: 1.5; color: var(--sns-mute); text-wrap: pretty; }
.sns-more .sns-fine a { display: inline; padding: 0; margin: 0; color: inherit; font-weight: 600; text-decoration: underline; white-space: nowrap; }

/* the classic product page is square-cornered: the options follow it */
.product-page:not(.pdp2) .sns-opt { border-radius: 4px; }
.product-page:not(.pdp2) .sns-opt.is-on { box-shadow: none; }
.product-page:not(.pdp2) .sns-po.sns-is-sub .sns-opt-sub { border-radius: 4px 4px 0 0; }
.product-page:not(.pdp2) .sns-more { border-radius: 0 0 4px 4px; }
.product-page:not(.pdp2) .sns-pill span { border-radius: 2px; }
.product-page:not(.pdp2) .sns-note { border-radius: 2px; }

/* ---------- cart */
.sns-cart { margin: 16px 0 6px; padding: 14px; border: 1.5px solid var(--sns-line); border-radius: 14px; background: #fff; text-align: left; }
.sns-cart.is-on { border-color: var(--sns-green); background: var(--sns-soft); }
.sns-switch { margin: 0; }
.sns-toggle { display: flex; align-items: center; gap: 12px; cursor: pointer; min-height: 44px; }
.sns-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sns-track { position: relative; flex: 0 0 auto; width: 46px; height: 28px; border-radius: 999px; background: #CFC9BC; transition: background .15s; }
.sns-knob { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s; }
.sns-toggle input:checked + .sns-track { background: var(--sns-green); }
.sns-toggle input:checked + .sns-track .sns-knob { transform: translateX(18px); }
.sns-toggle input:focus-visible + .sns-track { outline: 2px solid var(--sns-ink); outline-offset: 2px; }
.sns-toggle input:disabled + .sns-track { opacity: .5; }
.sns-toggle.is-busy { opacity: .6; pointer-events: none; }
.sns-toggle-t { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 15px; line-height: 1.3; }
.sns-cart .sns-off, .sns-cart .sns-why { margin: 8px 0 0; font-size: 13px; line-height: 1.5; }
.sns-why { color: #8a4b12; }
.sns-body { margin-top: 10px; }
.sns-freq { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 14px; font-weight: 600; }
.sns-freq select { flex: 1 1 auto; min-height: 44px; padding: 8px 12px; font-size: 15px; border: 1.5px solid var(--sns-line); border-radius: 10px; background: #fff; color: var(--sns-ink); }
.sns-timeline { list-style: none; margin: 0; padding: 0 0 0 4px; }
.sns-timeline li { position: relative; display: flex; gap: 10px; padding: 0 0 10px 18px; font-size: 13px; line-height: 1.35; }
.sns-timeline li::before { content: ""; position: absolute; left: 0; top: 4px; width: 9px; height: 9px; border-radius: 50%; background: var(--sns-green); }
.sns-timeline li:not(:last-child)::after { content: ""; position: absolute; left: 4px; top: 14px; bottom: 0; width: 1px; background: #9FD2B1; }
.sns-timeline b { flex: 0 0 52px; font-weight: 700; }
.sns-timeline span { color: var(--sns-mute); }
.sns-alert { margin: 10px 0; padding: 10px 12px; background: #fff4e5; color: #1F2124; border-left: 3px solid #b3531a; border-radius: 4px; font-size: 13px; line-height: 1.5; text-align: left; }
.sns-nojs { margin-top: 8px; }
.sns-nocode { margin-top: 14px; font-size: 12px; color: var(--ink-mute, #5F636A); text-align: center; line-height: 1.5; }
.cart-bulk-badge.sns-line-badge { background: #E5F3EA; color: #0F7A3A; }

/* ---------- consent box (inside the checkout form) */
.sns-consent { margin: 0 0 16px; padding: 14px; border: 1.5px solid var(--sns-green); border-radius: 12px; background: #fff; text-align: left; }
.sns-consent-h { font-size: 13px; font-weight: 800; margin-bottom: 6px; }
.sns-consent .sns-terms { margin: 0 0 12px; max-height: 168px; overflow-y: auto; font-size: 12px; line-height: 1.55; color: var(--sns-mute);
  padding-right: 4px; overflow-wrap: anywhere; }
.sns-agree { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; font-weight: 600; line-height: 1.4; cursor: pointer; }
.sns-agree input { flex: 0 0 auto; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--sns-green); }
.sns-agree b { color: #b3531a; }
.sns-consent .sns-need { margin: 8px 0 0; color: #b3531a; font-size: 13px; font-weight: 600; }

/* ---------- cart drawer row */
.pcq-sns { --sns-green: #0F7A3A; margin: 0 0 10px; padding: 10px 12px 12px; border: 1.5px solid #E3DED2; border-radius: 4px; background: #fff; font-size: 13px; color: #1F2124; }
.pcq-sns[hidden] { display: none; }
.pcq-sns.is-on { border-color: #0F7A3A; background: #F3FAF5; }
.pcq-sns-t { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.pcq-sns-t input { width: 20px; height: 20px; margin: 0; accent-color: #0F7A3A; flex: 0 0 auto; }
.pcq-sns-tt { display: flex; flex-direction: column; gap: 1px; min-width: 0; line-height: 1.35; }
.pcq-sns-tt b { font-size: 14px; line-height: 20px; }
.pcq-sns-tt small { font-size: 12px; color: #5F636A; }
.pcq-sns-f { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; padding-left: 30px; }
.pcq-sns-f label { font-weight: 600; }
.pcq-sns-f select { -webkit-appearance: none; appearance: none; min-height: 40px; padding: 6px 30px 6px 12px; border: 1.5px solid #CFC9BC; border-radius: 4px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%231F2124' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 11px center;
  font-size: 14px; font-weight: 600; color: #1F2124; }
.pcq-sns-save { color: #0F7A3A; font-weight: 700; }
.pcq-sns-n { margin-top: 6px; padding-left: 30px; color: #8a4b12; line-height: 1.45; }

/* ---------- thank-you page */
.sns-done { margin: 0 0 32px; padding: 18px 20px; border: 1.5px solid #0F7A3A; border-radius: 14px; background: #F3FAF5; text-align: left; font-size: 15px; line-height: 1.55; }
.sns-done b { display: block; font-size: 16px; margin-bottom: 4px; }
.sns-done a { color: inherit; font-weight: 700; }

/* ---------- account page */
.sns-acc { display: grid; gap: 18px; }
.sns-card { background: #fff; border: 1.5px solid var(--sns-line); border-radius: 16px; padding: 18px; }
.sns-card.is-canceled { opacity: .78; background: var(--sns-paper); }
.sns-card-top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px; }
.sns-card-h, .sns-acc h2.sns-card-h { font-family: var(--font-body, inherit) !important; font-size: 18px !important; font-weight: 800 !important;
  letter-spacing: 0 !important; margin: 0; line-height: 1.3; color: var(--sns-ink); }
.sns-card-sub { font-size: 13px; color: var(--sns-mute); margin-top: 2px; }
.sns-status { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.sns-status.active { background: #E5F3EA; color: var(--sns-green); }
.sns-status.paused { background: #FFF4E5; color: #8a4b12; }
.sns-status.canceled { background: #ECEAE4; color: var(--sns-mute); }
.sns-next { margin: 14px 0; padding: 14px; background: var(--sns-paper); border-radius: 12px; display: grid; gap: 4px; font-size: 14px; }
.sns-next-big { font-size: 20px; font-weight: 800; }
.sns-items { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.sns-items li { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 14px; }
.sns-items img { width: 48px; height: 48px; object-fit: cover; border-radius: 10px; background: #15171a; }
.sns-items .sns-i-n { font-weight: 700; line-height: 1.3; }
.sns-items .sns-i-l { font-size: 12px; color: var(--sns-mute); }
.sns-items .sns-i-p { text-align: right; white-space: nowrap; font-weight: 700; }
.sns-items .sns-i-p s { display: block; font-size: 11px; font-weight: 500; color: var(--sns-mute); }
.sns-oos { display: inline-block; margin-top: 2px; font-size: 11px; font-weight: 700; color: #8a4b12; }
.sns-sum { display: grid; gap: 4px; font-size: 14px; padding-top: 10px; border-top: 1px solid var(--sns-line); }
.sns-sum div { display: flex; justify-content: space-between; gap: 10px; }
.sns-sum .sns-sum-t { font-weight: 800; font-size: 16px; }
.sns-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.sns-actions form { margin: 0; }
.sns-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--sns-ink);
  background: #fff; color: var(--sns-ink); font-size: 14px; font-weight: 700; cursor: pointer; text-decoration: none; font-family: inherit; }
.sns-btn.primary { background: var(--sns-ink); color: #fff; }
.sns-btn.danger { border-color: #b3531a; color: #b3531a; }
.sns-btn:disabled { opacity: .5; cursor: not-allowed; }
.sns-edit { margin-top: 12px; border-top: 1px solid var(--sns-line); }
.sns-edit summary { cursor: pointer; padding: 12px 0; font-weight: 700; font-size: 14px; min-height: 44px; display: flex; align-items: center; list-style: none; }
.sns-edit summary::-webkit-details-marker { display: none; }
.sns-edit summary::after { content: "+"; margin-left: auto; font-size: 20px; font-weight: 400; }
.sns-edit[open] summary::after { content: "\2212"; }
.sns-edit form { display: grid; gap: 10px; padding-bottom: 12px; }
.sns-edit label { display: grid; gap: 4px; font-size: 13px; font-weight: 600; }
.sns-edit input[type=text], .sns-edit input[type=number], .sns-edit select { min-height: 44px; padding: 8px 12px; font-size: 16px; border: 1.5px solid var(--sns-line); border-radius: 10px; background: #fff; color: var(--sns-ink); width: 100%; box-sizing: border-box; }
.sns-edit .sns-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sns-edit .sns-qrow { display: grid; grid-template-columns: minmax(0, 1fr) 90px; gap: 10px; align-items: center; font-weight: 600; font-size: 14px; }
.sns-check { display: flex !important; grid-template-columns: none !important; align-items: flex-start; gap: 10px; font-weight: 600; }
.sns-check input { width: 20px; height: 20px; margin: 1px 0 0; flex: 0 0 auto; }
.sns-msg { padding: 12px 14px; border-radius: 10px; font-size: 14px; line-height: 1.5; }
.sns-msg.ok { background: #E5F3EA; color: #0b5e2c; }
.sns-msg.err { background: #fce4e4; color: #8a2a12; }
.sns-hist { margin: 10px 0 0; padding: 0; list-style: none; font-size: 12px; color: var(--sns-mute); display: grid; gap: 3px; }
.sns-empty { background: #fff; border: 1.5px dashed var(--sns-line); border-radius: 16px; padding: 26px 20px; text-align: center; }
.sns-empty h2 { font-size: 20px; margin: 0 0 6px; }
.sns-empty p { color: var(--sns-mute); margin: 0 0 16px; font-size: 14px; line-height: 1.55; }
@media (max-width: 480px) {
  /* phones: One-time keeps its price on the right (one short line); Subscribe & Save puts its prices under the title */
  .sns-opt-sub { grid-template-columns: 20px minmax(0, 1fr); }
  .sns-opt-sub .sns-opt-p { grid-column: 2; flex-direction: row; align-items: baseline; gap: 6px; text-align: left; flex-wrap: wrap; }
  .sns-opt-sub .sns-opt-p small { margin-top: 0; }
  .sns-opt-sub .sns-opt-p small.is-total::before { content: "\00b7"; margin-right: 6px; }
  .sns-more { padding: 12px 12px 13px; }
  .sns-card { padding: 16px 14px; }
  .sns-actions .sns-btn { flex: 1 1 calc(50% - 4px); padding: 0 10px; }
  .sns-edit .sns-row2 { grid-template-columns: 1fr; }
}

/* the cart summary is a dark panel whose own rules colour every label and select (with !important): inside the light
   Subscribe & Save cards they are dark again */
body .cart-summary .sns-cart, body .cart-summary .sns-consent,
body .cart-summary .sns-cart label, body .cart-summary .sns-cart select, body .cart-summary .sns-consent label,
body.hv2 .cart-summary .sns-cart label, body.hv2 .cart-summary .sns-cart select, body.hv2 .cart-summary .sns-consent label { color: #1F2124 !important; }
body .cart-summary .sns-cart select, body.hv2 .cart-summary .sns-cart select { background: #fff !important; border: 1.5px solid #E3DED2 !important; }
body .cart-summary .sns-cart .sns-badge, body.hv2 .cart-summary .sns-cart .sns-badge { color: #fff !important; }

/* the phone's sticky buy bar while Subscribe & Save is picked: a green price and a tag before the product name */
body.hv2 .pd-stickybuy.is-sns .pd-stickybuy-price { color: #0F7A3A; }
body.hv2 .pd-stickybuy.is-sns .pd-stickybuy-name::before { content: "Subscribe & Save \00b7  "; color: #0F7A3A; font-weight: 700; }
