/* Site-wide widgets in the Pep language: the launch offer card (bottom-left) and the WhatsApp chooser (bottom-right).
   Tokens come from shell.css. Fixed position, nothing reserved in the flow, transform and opacity only.
   Layers: above page content and the sticky sub menu (50), below the header, mega menu and mobile drawer (60). */

.gfw { --gfw-wa: #25D366; --gfw-ease: cubic-bezier(.16, 1, .3, 1); --gfw-edge: 20px; --gfw-b: calc(var(--gfw-edge) + env(safe-area-inset-bottom, 0px)); }
.gfw-off .gfw { visibility: hidden; }
.gfw :focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 3px #fff; }
.gfw a, .gfw button { -webkit-tap-highlight-color: transparent; }

/* ============ Offer ============ */
.gfo { position: fixed; z-index: 55; left: calc(var(--gfw-edge) + env(safe-area-inset-left, 0px)); bottom: var(--gfw-b); width: 0; height: 0; }

/* Pill: the collapsed state */
.gfo-pill { position: absolute; left: 0; bottom: 0; display: inline-flex; align-items: center; gap: .6rem; min-height: 48px; padding: 4px 5px 4px 18px; border: var(--outline); border-radius: var(--r-pill); background: var(--yellow); color: var(--ink); box-shadow: 4px 4px 0 var(--ink); font: 800 .9375rem/1 var(--sans); white-space: nowrap; cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(18px); transition: opacity .3s, transform .5s var(--gfw-ease), box-shadow .3s var(--gfw-ease), background-color .2s, visibility 0s .5s; }
.gfo.is-ready:not(.is-open) .gfo-pill { opacity: 1; visibility: visible; transform: none; transition: opacity .4s, transform .6s var(--gfw-ease), box-shadow .3s var(--gfw-ease), background-color .2s, visibility 0s; }
.gfo.is-ready:not(.is-open) .gfo-pill:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); background: var(--yellow-deep); }
.gfo.is-ready:not(.is-open) .gfo-pill:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--ink); transition-duration: .1s; }
.gfo-pill:not(:has(.gfo-pill-d)) { padding-right: 18px; }
.gfo-pill-d { display: inline-grid; place-items: center; min-height: 38px; padding: 0 .85rem; border-radius: var(--r-pill); background: var(--ink); color: var(--yellow); font: 700 .8125rem/1 var(--mono); font-variant-numeric: tabular-nums; }

/* Card */
.gfo-card { position: absolute; left: 0; bottom: 0; width: min(344px, calc(100vw - 2 * var(--gfw-edge))); max-height: calc(100vh - var(--head-h) - 72px - var(--gfw-b)); max-height: calc(100dvh - var(--head-h) - 72px - var(--gfw-b)); display: flex; flex-direction: column; border: var(--outline); border-radius: var(--r-card); background: var(--cream); color: var(--ink); box-shadow: var(--shadow-pop); transform-origin: 0 100%; opacity: 0; visibility: hidden; transform: translateY(28px) scale(.96); transition: opacity .25s, transform .3s var(--gfw-ease), visibility 0s .3s; }
.gfo-in { min-height: 0; padding: 22px 22px 20px; overflow-y: auto; overscroll-behavior: contain; border-radius: inherit; scrollbar-width: none; }
.gfo-in::-webkit-scrollbar { display: none; }
.gfo.is-open .gfo-card { opacity: 1; visibility: visible; transform: none; transition: opacity .35s, transform .8s var(--gfw-ease), visibility 0s; }
.gfo-in > * { margin: 0; }
.gfo-label { padding-right: 52px; font: 700 .8125rem/1.2 var(--sans); color: var(--ink-soft); }
.gfo-label::before { content: ""; display: inline-block; width: .6rem; height: .6rem; margin-right: .5rem; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 2px var(--ink); }
.gfo-h { margin-top: 8px !important; font: 800 clamp(1.5rem, 2vw, 1.75rem)/1.04 var(--display); letter-spacing: -.035em; text-wrap: balance; }
.gfo-x { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 44px; height: 44px; border: var(--outline); border-radius: 50%; background: var(--paper); color: var(--ink); cursor: pointer; transition: background-color .2s, transform .3s var(--gfw-ease); }
.gfo-x:hover { background: var(--pink-soft); transform: rotate(90deg); }
.gfo-x:active { transform: scale(.92); }

/* Sticker: the site's burst, copied here because pep-kit.css only loads on the home page. It sits across the top-right corner. */
.gfo-burst { --pk-s: 98px; position: absolute; top: -64px; right: 72px; z-index: 2; display: grid; place-items: center; width: var(--pk-s); aspect-ratio: 1; filter: drop-shadow(4px 4px 0 var(--ink)); pointer-events: none; }
.gfo-burst::before, .gfo-burst::after { content: ""; position: absolute; clip-path: polygon(50% 0, 59% 10%, 71% 4%, 75% 17%, 88% 15%, 87% 28%, 99% 32%, 93% 43%, 100% 54%, 90% 61%, 93% 74%, 80% 76%, 77% 89%, 65% 86%, 56% 96%, 47% 87%, 35% 93%, 30% 81%, 17% 82%, 17% 69%, 5% 64%, 10% 52%, 1% 42%, 12% 35%, 9% 22%, 22% 20%, 25% 7%, 38% 10%); animation: gfw-spin 28s linear infinite; }
.gfo-burst::before { inset: 0; background: var(--ink); }
.gfo-burst::after { inset: 3px; background: var(--pink); }
.gfo-burst-t { position: relative; z-index: 1; display: block; text-align: center; font: 800 .8125rem/1 var(--display); letter-spacing: -.01em; transform: rotate(-8deg); }
.gfo-burst-t b { display: block; font-size: 1.75rem; line-height: .95; letter-spacing: -.04em; }
.gfo.is-open .gfo-burst { animation: gfo-pop 1s var(--gfw-ease) .3s backwards; }
@keyframes gfo-pop { from { opacity: 0; transform: rotate(-200deg) scale(.2); } 60% { opacity: 1; transform: rotate(10deg) scale(1.12); } }
@keyframes gfw-spin { to { transform: rotate(360deg); } }

.gfo-offer { margin-top: 14px !important; }
.gfo-line { font-size: .9375rem; line-height: 1.45; font-weight: 500; text-wrap: pretty; }
.gfo-line b { padding: .02em .38em; border: 2px solid var(--ink); border-radius: var(--r-pill); background: var(--yellow); font-weight: 800; white-space: nowrap; }
.gfo-cd { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0 0 !important; }
.gfo-cd span { display: grid; justify-items: center; gap: 3px; padding: 8px 4px 7px; border: var(--outline); border-radius: 16px; background: var(--paper); font: 700 .75rem/1 var(--sans); color: var(--ink-soft); }
.gfo-cd b { font: 800 1.625rem/1 var(--mono); letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--ink); }
.gfo-price { margin: 10px 0 0 !important; padding: .55rem .8rem; border: var(--outline); border-radius: 16px; background: var(--yellow-soft); font: 700 .8125rem/1.35 var(--mono); font-variant-numeric: tabular-nums; text-wrap: balance; }
.gfo-list { display: grid; gap: 7px; margin: 16px 0 0 !important; padding: 0; list-style: none; }
.gfo-list li { display: flex; align-items: center; gap: .6rem; font-size: .9375rem; line-height: 1.3; font-weight: 600; }
.gfo-list .gfw-ck { flex: none; width: 24px; height: 24px; padding: 3px; border: 2px solid var(--ink); border-radius: 50%; background: var(--mint); }
.gfo-list em { margin-left: auto; padding: .24rem .55rem .2rem; border: 1.5px solid var(--ink); border-radius: var(--r-pill); background: var(--pink); font: 800 .6875rem/1 var(--sans); font-style: normal; letter-spacing: .03em; }

/* Button: the shared component (56px pill, 2px ink outline, 44px round arrow badge inset 6px) */
.gfo-btn { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 56px; margin-top: 18px !important; padding: 6px 6px 6px 22px; border: var(--outline); border-radius: var(--r-pill); background: var(--yellow); color: var(--ink); text-decoration: none; font: 800 1rem/1.1 var(--sans); transition: transform .3s var(--gfw-ease), box-shadow .3s var(--gfw-ease), background-color .2s; }
.gfo-btn:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--ink); background: var(--yellow-deep); }
.gfo-btn:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--ink); transition-duration: .1s; }
.gfw-arr { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--yellow); transition: transform .35s var(--gfw-ease); }
.gfo-btn:hover .gfw-arr, .gwa-opt:hover .gfw-arr { transform: translateX(3px); }
.gfo-foot { margin-top: 10px !important; text-align: center; font: 700 .875rem/1.3 var(--sans); }
.gfo-terms { margin-top: 8px !important; text-align: center; font-size: .75rem; line-height: 1.4; color: var(--ink-soft); text-wrap: balance; }
.gfo-scrim { display: none; }

/* ============ WhatsApp chooser ============ */
.gwa { position: fixed; z-index: 55; right: calc(var(--gfw-edge) + env(safe-area-inset-right, 0px)); bottom: var(--gfw-b); width: 0; height: 0; }
.gwa-fab { position: absolute; right: 0; bottom: 0; display: grid; place-items: center; width: 60px; height: 60px; border: var(--outline); border-radius: 50%; background: var(--gfw-wa); color: var(--ink); box-shadow: 4px 4px 0 var(--ink); text-decoration: none; opacity: 0; transform: scale(.6); transition: opacity .4s, transform .6s var(--gfw-ease), box-shadow .3s var(--gfw-ease); }
.gfw-ready .gwa-fab { opacity: 1; transform: none; }
.gfw-ready .gwa-fab:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.gfw-ready .gwa-fab:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--ink); transition-duration: .1s; }
.gwa.is-open .gwa-fab { background: var(--ink); color: var(--gfw-wa); }
.no-js .gwa-fab { opacity: 1; transform: none; }

.gwa-panel { position: absolute; right: 0; bottom: 76px; width: min(332px, calc(100vw - 2 * var(--gfw-edge))); padding: 20px 18px 18px; border: var(--outline); border-radius: var(--r-card); background: var(--cream); color: var(--ink); box-shadow: var(--shadow-pop); transform-origin: 100% 100%; opacity: 0; visibility: hidden; transform: translateY(16px) scale(.96); transition: opacity .2s, transform .25s var(--gfw-ease), visibility 0s .25s; }
.gwa.is-open .gwa-panel { opacity: 1; visibility: visible; transform: none; transition: opacity .3s, transform .6s var(--gfw-ease), visibility 0s; }
.gwa-panel > * { margin: 0; }
.gwa-h { padding-right: 48px; font: 800 1.25rem/1.1 var(--display); letter-spacing: -.02em; }
.gwa-sub { margin-top: 6px !important; padding-right: 20px; font-size: .875rem; line-height: 1.45; color: var(--ink-soft); text-wrap: pretty; }
.gwa-x { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 44px; height: 44px; border: var(--outline); border-radius: 50%; background: var(--paper); color: var(--ink); cursor: pointer; transition: background-color .2s, transform .3s var(--gfw-ease); }
.gwa-x:hover { background: var(--pink-soft); transform: rotate(90deg); }
.gwa-opt { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 72px; margin-top: 10px !important; padding: 8px 8px 8px 20px; border: var(--outline); border-radius: 36px; background: var(--paper); color: var(--ink); text-decoration: none; transition: transform .3s var(--gfw-ease), box-shadow .3s var(--gfw-ease), background-color .2s; }
.gwa-sub + .gwa-opt { margin-top: 16px !important; }
.gwa-opt:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--ink); background: var(--yellow); }
.gwa-opt:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--ink); transition-duration: .1s; }
.gwa-opt b { display: block; font: 800 1.125rem/1.1 var(--display); letter-spacing: -.02em; }
.gwa-opt i { display: block; margin-top: 4px; font: 700 .875rem/1.1 var(--mono); font-style: normal; font-variant-numeric: tabular-nums; }

/* ============ Phones: pill, then a bottom sheet ============ */
@media (max-width: 700px) {
  .gfw { --gfw-edge: 16px; }
  .gfo-card { position: fixed; left: 0; right: 0; bottom: 0; width: auto; max-height: 80vh; max-height: 80dvh; border-width: 2px 0 0; border-radius: 28px 28px 0 0; box-shadow: none; transform-origin: 50% 100%; transform: translateY(100%); }
  .gfo.is-open .gfo-card { transform: none; transition: opacity .3s, transform .7s var(--gfw-ease), visibility 0s; }
  .gfo-scrim { display: block; position: fixed; inset: 0; background: rgba(20, 20, 20, .5); touch-action: none; opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s; }
  .gfo.is-open .gfo-scrim { opacity: 1; visibility: visible; transition: opacity .4s, visibility 0s; }
  .gfo-in { padding: 26px 20px calc(22px + env(safe-area-inset-bottom, 0px)); }
  .gfo-burst { top: -52px; right: 64px; --pk-s: 88px; }
  .gfo-h { max-width: 14ch; }
  .gwa-fab { width: 56px; height: 56px; }
  .gwa-panel { bottom: 70px; }
  .gfo-pill { min-height: 48px; font-size: .875rem; }
  /* The sheet owns the screen while it is open */
  .gfo.is-open ~ .gwa .gwa-fab { visibility: hidden; }
}
@media (max-width: 370px) { .gfo-pill-t { max-width: 9.5rem; overflow: hidden; text-overflow: clip; } }

@media (prefers-reduced-motion: reduce) {
  .gfo-pill, .gfo-card, .gfo-scrim, .gwa-fab, .gwa-panel { transition-duration: 0s !important; transition-delay: 0s !important; transform: none; }
  .gfo.is-open .gfo-burst, .gfo-burst::before, .gfo-burst::after { animation: none; }
  .gfo-btn, .gwa-opt, .gfo-x, .gwa-x, .gfw-arr { transition: none; }
}
@media (max-width: 700px) and (prefers-reduced-motion: reduce) { .gfo-card { transform: none; } }

/* No JavaScript: the card shows as a static panel (desktop only), the chooser button is a plain link */
.no-js .gfo-x, .no-js .gfo-pill, .no-js .gfo-scrim { display: none; }

/* Short laptop screens: the card must fit without an inner scroll. The terms line stays in the page for assistive tech. */
@media (min-width: 701px) and (max-height: 820px) {
  .gfo-terms { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .gfo-list { gap: 5px !important; }
  .gfo-list li { font-size: .875rem; }
  .gfo-h { font-size: 1.3125rem !important; line-height: 1.08 !important; padding-right: 52px; }
  .gfo-in { padding-block: 16px 14px !important; }
}

.gfo-list li small { display: block; margin-top: 2px; font-size: .75rem; line-height: 1.3; font-weight: 500; color: var(--ink-soft); }
