/* ProgressXP V3 only: compact left purchase notice, optional right WhatsApp. */
body.pxp-version-3 .pxp-sale-toast.pxp-local-toast.pxp-purchase-toast {
  box-sizing:border-box!important;
  left:max(10px,env(safe-area-inset-left,0px))!important;
  right:auto!important;
  width:min(340px,calc(100vw - 100px))!important;
  max-width:340px!important;
  padding:10px 11px!important;
  gap:9px!important;
  border-radius:14px!important;
}
body.pxp-version-3 .pxp-sale-toast.pxp-local-toast.pxp-purchase-toast .pxp-sale-toast-copy {flex:1;min-width:0}
body.pxp-version-3 .pxp-sale-toast.pxp-local-toast.pxp-purchase-toast .pxp-sale-toast-copy strong {
  white-space:normal!important;overflow:hidden!important;
  display:-webkit-box!important;-webkit-box-orient:vertical;-webkit-line-clamp:2;
  line-height:1.3;
}
body.pxp-version-3 .pxp-sale-toast.pxp-local-toast.pxp-purchase-toast .pxp-sale-toast-copy small {
  line-height:1.35;white-space:normal!important;overflow:visible!important;
  text-overflow:clip!important;overflow-wrap:anywhere;
}
@media(max-width:620px) {
  body.pxp-version-3 .pxp-sale-toast.pxp-local-toast.pxp-purchase-toast {
    width:min(286px,calc(100vw - 98px))!important;
    max-width:min(286px,calc(100vw - 98px))!important;
    min-height:62px;
    padding:8px 9px!important;
  }
  body.pxp-version-3 .pxp-sale-toast.pxp-local-toast.pxp-purchase-toast .pxp-sale-toast-icon {
    width:32px;height:32px;flex-basis:32px;
  }
  body.pxp-version-3 .pxp-sale-toast.pxp-local-toast.pxp-purchase-toast .pxp-sale-toast-copy strong {font-size:11.5px}
  body.pxp-version-3 .pxp-sale-toast.pxp-local-toast.pxp-purchase-toast .pxp-sale-toast-copy small {font-size:10px}
}

/* Clean light theme — retains identical offer content and red buy button. */
body.pxp-version-3 .pxp-v3-dock[data-theme="light"] {
  background:#ffffff;color:#141b2a;border-color:#e2e5ec;
  box-shadow:0 12px 34px rgba(16,24,40,.14),0 2px 10px rgba(16,24,40,.07);
}
body.pxp-version-3 .pxp-v3-dock[data-theme="light"] .pxp-v3-dock-pricebox {
  background:#f7f5fa;border-color:#e9e3f0;
}
body.pxp-version-3 .pxp-v3-dock[data-theme="light"] .pxp-v3-dock-badge {
  color:#6f3ea5;background:#f0eafa;border-color:#d8c6ee;
}
body.pxp-version-3 .pxp-v3-dock[data-theme="light"] .pxp-v3-dock-onetime,
body.pxp-version-3 .pxp-v3-dock[data-theme="light"] .pxp-v3-dock-original {color:#667085}
body.pxp-version-3 .pxp-v3-dock[data-theme="light"] .pxp-v3-dock-discount {color:#111827}
body.pxp-version-3 .pxp-v3-dock[data-theme="light"] .pxp-v3-dock-assurance {color:#667085}
body.pxp-version-3 .pxp-v3-dock[data-theme="light"] .pxp-v3-dock-buy:focus-visible {outline-color:#3b82f6}
@keyframes pxpV3PriceStrikePulse {
  0%,100% {text-decoration-color:#dc3349}
  50% {text-decoration-color:#f58b9a}
}
body.pxp-version-3 .pxp-v3-dock .pxp-v3-dock-original {
  text-decoration-line:line-through!important;text-decoration-thickness:2px!important;
  animation:pxpV3PriceStrikePulse 3.2s ease-in-out infinite;
}

/* Dedicated WhatsApp button: fixed at right, to the side of the left-hand toast. */
body.pxp-version-3 .pxp-v3-wa {
  position:fixed;right:max(12px,env(safe-area-inset-right,0px));
  bottom:max(14px,calc(env(safe-area-inset-bottom,0px) + 12px));
  z-index:2147483001;width:52px;height:52px;
  font-family:'DM Sans',system-ui,sans-serif;
  transition:bottom .22s ease;
}
body.pxp-version-3.pxp-v3-sticky-visible .pxp-v3-wa {
  bottom:calc(var(--pxp-v3-dock-occupied,110px) + 8px);
}
body.pxp-version-3 .pxp-v3-wa-button {
  position:relative;z-index:1;display:flex;align-items:center;justify-content:center;
  width:52px;height:52px;border-radius:50%;box-sizing:border-box;
  background:#20b957;color:#fff!important;text-decoration:none!important;
  border:2px solid #fff;box-shadow:0 7px 20px rgba(15,23,42,.22);
  transition:transform .18s ease,background .18s ease;
}
body.pxp-version-3 .pxp-v3-wa-button svg {display:block;width:28px;height:28px}
body.pxp-version-3 .pxp-v3-wa-button:hover {background:#159a46;transform:translateY(-2px)}
body.pxp-version-3 .pxp-v3-wa-button:focus-visible {outline:3px solid #2563eb;outline-offset:3px}
body.pxp-version-3 .pxp-v3-wa-tip {
  position:absolute;right:calc(100% + 9px);bottom:50%;
  width:max-content;max-width:min(260px,calc(100vw - 115px));box-sizing:border-box;
  padding:10px 12px;border:1px solid #e1e5ec;border-radius:12px;
  color:#1d2939;background:#fff;box-shadow:0 5px 18px rgba(16,24,40,.16);
  font-weight:650;font-size:12px;line-height:1.35;
  overflow-wrap:anywhere;
  opacity:0;visibility:hidden;pointer-events:none;
  transform:translate(12px,50%);
  transition:transform .24s ease,opacity .2s ease,visibility .24s;
}
body.pxp-version-3 .pxp-v3-wa.is-teaser-open .pxp-v3-wa-tip {
  opacity:1;visibility:visible;transform:translate(0,50%);
}
/* When the notification is visible, move the WhatsApp text ABOVE its button
   rather than letting it slide over the notification. */
body.pxp-version-3 .pxp-v3-wa.is-toast-showing .pxp-v3-wa-tip {
  bottom:calc(100% + 9px);right:0;
  transform:translateY(8px);
}
body.pxp-version-3 .pxp-v3-wa.is-toast-showing.is-teaser-open .pxp-v3-wa-tip {
  transform:translateY(0);
}
@media(max-width:620px) {
  body.pxp-version-3 .pxp-v3-wa {right:max(10px,env(safe-area-inset-right,0px));width:48px;height:48px}
  body.pxp-version-3 .pxp-v3-wa-button {width:48px;height:48px}
  body.pxp-version-3 .pxp-v3-wa-button svg {width:26px;height:26px}
  body.pxp-version-3 .pxp-v3-wa-tip {font-size:11px;padding:8px 10px;max-width:min(218px,calc(100vw - 100px))}
}
@media(prefers-reduced-motion:reduce) {
  body.pxp-version-3 .pxp-v3-wa,body.pxp-version-3 .pxp-v3-wa-button,
  body.pxp-version-3 .pxp-v3-wa-tip {transition:none!important}
  body.pxp-version-3 .pxp-v3-dock .pxp-v3-dock-original {animation:none!important}
}

/* V3 left-side light-offer refresh: based on the approved reference crop.
   Does not modify the right buy button, assurance line, or dark-theme layout. */
body.pxp-version-3 .pxp-v3-dock[data-theme="light"] .pxp-v3-dock-pricebox-ref {
  background:#fff;
  border:0;
  border-right:1px solid #e5e8ef;
  border-radius:0;
  padding:5px 11px 5px 9px;
  min-width:0;
  box-shadow:none;
}
body.pxp-version-3 .pxp-v3-dock[data-theme="light"] .pxp-v3-dock-ref-content {
  display:grid;
  grid-template-columns:max-content max-content;
  grid-template-areas:"badge badge" "old old" "price saving";
  column-gap:11px;
  row-gap:4px;
  justify-content:start;
  align-content:center;
  align-items:center;
  min-width:0;
}
body.pxp-version-3 .pxp-v3-dock[data-theme="light"] .pxp-v3-dock-ref-badge {
  grid-area:badge;
  display:inline-flex;
  justify-self:start;
  min-height:unset;
  padding:5px 11px;
  border:0;
  border-radius:999px;
  background:#ffe8e9;
  color:#d6282f;
  font-size:11px;
  line-height:1.1;
  font-weight:850;
  letter-spacing:.012em;
}
body.pxp-version-3 .pxp-v3-dock[data-theme="light"] .pxp-v3-dock-ref-original {
  grid-area:old;
  display:block;
  width:max-content;
  max-width:100%;
  color:#626b7c;
  font-size:14px;
  line-height:1.12;
  font-weight:850;
  text-decoration-line:line-through!important;
  text-decoration-thickness:2.6px!important;
  text-decoration-color:#eb3445;
  text-decoration-skip-ink:none;
  white-space:nowrap;
}
body.pxp-version-3 .pxp-v3-dock[data-theme="light"] .pxp-v3-dock-ref-price {
  grid-area:price;
  display:block;
  color:#0e1626;
  font-size:clamp(26px,3.2vw,32px);
  line-height:1.08;
  font-weight:900;
  letter-spacing:-.045em;
  white-space:nowrap;
}
body.pxp-version-3 .pxp-v3-dock[data-theme="light"] .pxp-v3-dock-ref-save {
  grid-area:saving;
  display:inline-flex;
  gap:6px;
  align-items:center;
  justify-content:center;
  justify-self:start;
  width:max-content;
  box-sizing:border-box;
  min-height:27px;
  padding:6px 10px;
  border-radius:999px;
  color:#0d7e22;
  background:#dcfbe4;
  font-size:12px;
  font-weight:850;
  line-height:1.2;
  white-space:nowrap;
}
body.pxp-version-3 .pxp-v3-dock[data-theme="light"] .pxp-v3-dock-ref-save svg {
  display:block;
  width:15px;
  height:15px;
  flex:none;
}
/* On phones, move savings to the old-price line instead of squeezing the
   right-hand CTA or stacking a fourth row beneath the sale price. */
@media (max-width:620px) {
  body.pxp-version-3 .pxp-v3-dock[data-theme="light"] .pxp-v3-dock-pricebox-ref {
    padding:3px 8px 3px 2px;
    justify-content:center;
  }
  body.pxp-version-3 .pxp-v3-dock[data-theme="light"] .pxp-v3-dock-ref-content {
    grid-template-columns:max-content max-content;
    grid-template-areas:"badge badge" "old saving" "price price";
    column-gap:5px;
    row-gap:3px;
  }
  body.pxp-version-3 .pxp-v3-dock[data-theme="light"] .pxp-v3-dock-ref-badge {
    padding:3px 6px;
    font-size:8px;
  }
  body.pxp-version-3 .pxp-v3-dock[data-theme="light"] .pxp-v3-dock-ref-original {
    font-size:10.5px;
  }
  body.pxp-version-3 .pxp-v3-dock[data-theme="light"] .pxp-v3-dock-ref-price {
    font-size:clamp(20px,5.7vw,25px);
  }
  body.pxp-version-3 .pxp-v3-dock[data-theme="light"] .pxp-v3-dock-ref-save {
    padding:3px 5px;
    min-height:16px;
    gap:3px;
    font-size:8px;
  }
  body.pxp-version-3 .pxp-v3-dock[data-theme="light"] .pxp-v3-dock-ref-save svg {
    width:10px;
    height:10px;
  }
}
@media (max-width:350px) {
  body.pxp-version-3 .pxp-v3-dock[data-theme="light"] .pxp-v3-dock-ref-content {
    column-gap:3px;
  }
  body.pxp-version-3 .pxp-v3-dock[data-theme="light"] .pxp-v3-dock-ref-save {
    font-size:7.5px;
    padding:3px 4px;
    gap:2px;
  }
  body.pxp-version-3 .pxp-v3-dock[data-theme="light"] .pxp-v3-dock-ref-price {
    font-size:20px;
  }
}

/* V3 WHITE offer: less crowded, visually calmer pricing and a divider
   set back from the existing CTA. Button width/text/CSS untouched. */
body.pxp-version-3 .pxp-v3-dock[data-theme="light"] .pxp-v3-dock-pricebox-ref {
  position:relative;
  border-right:0;
}
body.pxp-version-3 .pxp-v3-dock[data-theme="light"] .pxp-v3-dock-pricebox-ref::after {
  content:"";
  position:absolute;
  top:6px;
  bottom:6px;
  right:6px;
  width:1px;
  background:#e1e5ed;
  pointer-events:none;
}
@media (max-width:620px) {
  body.pxp-version-3 .pxp-v3-dock[data-theme="light"] .pxp-v3-dock-pricebox-ref {
    padding:4px 10px 4px 4px;
  }
  body.pxp-version-3 .pxp-v3-dock[data-theme="light"] .pxp-v3-dock-ref-content {
    grid-template-columns:minmax(0,1fr) max-content;
    grid-template-areas:
      "badge saving"
      "old old"
      "price price";
    column-gap:3px;
    row-gap:5px;
    justify-content:stretch;
    align-items:center;
  }
  body.pxp-version-3 .pxp-v3-dock[data-theme="light"] .pxp-v3-dock-ref-badge {
    font-size:9.2px;
    font-weight:800;
    padding:4px 6px;
    line-height:1.1;
    white-space:nowrap;
  }
  body.pxp-version-3 .pxp-v3-dock[data-theme="light"] .pxp-v3-dock-ref-original {
    font-size:11.4px;
    font-weight:750;
    line-height:1.15;
  }
  body.pxp-version-3 .pxp-v3-dock[data-theme="light"] .pxp-v3-dock-ref-price {
    font-size:clamp(23px,6vw,26px);
    line-height:1.07;
    letter-spacing:-.04em;
  }
  body.pxp-version-3 .pxp-v3-dock[data-theme="light"] .pxp-v3-dock-ref-save {
    min-height:19px;
    justify-self:end;
    padding:4px 5px;
    gap:3px;
    font-size:8.7px;
    font-weight:800;
    line-height:1.1;
  }
  body.pxp-version-3 .pxp-v3-dock[data-theme="light"] .pxp-v3-dock-ref-save svg {
    width:10px;
    height:10px;
  }
}
@media (max-width:389px) {
  body.pxp-version-3 .pxp-v3-dock[data-theme="light"] .pxp-v3-dock-pricebox-ref {
    padding:5px 10px 5px 4px;
  }
  body.pxp-version-3 .pxp-v3-dock[data-theme="light"] .pxp-v3-dock-ref-content {
    grid-template-columns:1fr;
    grid-template-areas:"badge" "old" "price" "saving";
    row-gap:3px;
  }
  body.pxp-version-3 .pxp-v3-dock[data-theme="light"] .pxp-v3-dock-ref-badge {
    font-size:8.9px;
    padding:3px 7px;
  }
  body.pxp-version-3 .pxp-v3-dock[data-theme="light"] .pxp-v3-dock-ref-original {
    font-size:10.9px;
  }
  body.pxp-version-3 .pxp-v3-dock[data-theme="light"] .pxp-v3-dock-ref-price {
    font-size:clamp(21px,6.2vw,24px);
  }
  body.pxp-version-3 .pxp-v3-dock[data-theme="light"] .pxp-v3-dock-ref-save {
    justify-self:start;
    padding:3px 7px;
    min-height:17px;
    font-size:8.6px;
  }
}

/* V3 white sticky offer — Nov 12 divider and savings-pill polish.
   Leave the live V2 and the dark theme untouched.
   Keep the red button's size, font, background and payment behavior exactly as-is. */
body.pxp-version-3 .pxp-v3-dock[data-theme="light"] .pxp-v3-dock-pricebox-ref::after {
  box-shadow:none!important;
  filter:none!important;
}
/* The red button's existing broad drop shadow bleeds into the white divider
   gutter on mobile. Clip only the shadow extending LEFT of the button box,
   keeping the red button and its lower/right shadow unchanged. */
body.pxp-version-3 .pxp-v3-dock[data-theme="light"] .pxp-v3-dock-buy {
  clip-path:inset(-24px -40px -42px 0px);
}
/* The two top-row pills cannot both fit with a comfortable divider gap at
   ordinary phone widths. Keep three compact rows, moving the saving pill
   beside the shorter crossed-out price instead of touching the divider. */
@media (min-width:390px) and (max-width:620px) {
  body.pxp-version-3 .pxp-v3-dock[data-theme="light"] .pxp-v3-dock-ref-content {
    grid-template-columns:max-content max-content;
    grid-template-areas:"badge badge" "old saving" "price price";
    column-gap:13px;
    justify-content:start;
  }
  body.pxp-version-3 .pxp-v3-dock[data-theme="light"] .pxp-v3-dock-ref-save {
    justify-self:start;
  }
}
/* Keep the button's strong red surface, size and typography, but remove the
   broad pink halo visible in the white gutter alongside the divider. */
body.pxp-version-3 .pxp-v3-dock[data-theme="light"] .pxp-v3-dock-buy {
  box-shadow:0 8px 15px -12px rgba(239,53,53,.15);
}


/* V3 white offer – Nov 12: place Savings beside SPECIAL OFFER at the top.
   Only the left price-panel layout changes. The right purchase CTA and
   all V2/dark-theme styling remain untouched. */
body.pxp-version-3 .pxp-v3-dock[data-theme="light"] .pxp-v3-dock-ref-content {
  grid-template-columns:max-content max-content;
  grid-template-areas:
    "badge saving"
    "old old"
    "price price";
  column-gap:14px;
  row-gap:5px;
  justify-content:start;
  align-items:center;
}
body.pxp-version-3 .pxp-v3-dock[data-theme="light"] .pxp-v3-dock-ref-save {
  grid-area:saving;
  justify-self:start;
  margin:0;
}
/* Regular phones: small but readable badges, balanced within the price half. */
@media (min-width:400px) and (max-width:620px) {
  body.pxp-version-3 .pxp-v3-dock[data-theme="light"] .pxp-v3-dock-ref-content {
    column-gap:8px;
  }
}
@media (min-width:360px) and (max-width:399px) {
  body.pxp-version-3 .pxp-v3-dock[data-theme="light"] .pxp-v3-dock-ref-content {
    column-gap:5px;
    row-gap:5px;
  }
  body.pxp-version-3 .pxp-v3-dock[data-theme="light"] .pxp-v3-dock-ref-badge {
    font-size:8.1px;
    padding:4px 5px;
  }
  body.pxp-version-3 .pxp-v3-dock[data-theme="light"] .pxp-v3-dock-ref-save {
    font-size:7.8px;
    min-height:18px;
    padding:3px 5px;
    gap:3px;
  }
  body.pxp-version-3 .pxp-v3-dock[data-theme="light"] .pxp-v3-dock-ref-save svg {
    width:9px;
    height:9px;
  }
}
/* Tiny phones do not have enough horizontal space for two fully legible pills.
   Keep both grouped in the TOP part, above old and new prices. */
@media (max-width:359px) {
  body.pxp-version-3 .pxp-v3-dock[data-theme="light"] .pxp-v3-dock-ref-content {
    grid-template-columns:minmax(0,1fr);
    grid-template-areas:
      "badge"
      "saving"
      "old"
      "price";
    row-gap:2px;
    justify-content:start;
  }
  body.pxp-version-3 .pxp-v3-dock[data-theme="light"] .pxp-v3-dock-ref-save {
    justify-self:start;
  }
}
