/* Peptide Works v1 -- global glue (loaded after the verbatim source stack).
 *
 * Only what the source got from Elementor's JavaScript (which we do not run) or
 * what our build needs on top of the shipped CSS. No source rule is re-authored.
 */

/* ---- sticky main row ------------------------------------------------------
 * Source: Elementor sticky on container 263d6de (position:fixed + spacer clone);
 * the green promo strip scrolls away, the 78px (64px mobile) row stays.
 * Here: the whole <header> is position:sticky with a negative top equal to the
 * promo strip's height, measured by pw-header.js into --pw-promo-h. Same visual
 * result, no spacer, no layout jump. z-index 99 = .elementor-sticky--active. */
.elementor-location-header{
  position:-webkit-sticky;
  position:sticky;
  top:calc(var(--pw-promo-h, 44px) * -1);
  z-index:99;
}
.admin-bar .elementor-location-header{top:calc(32px - var(--pw-promo-h, 44px));}
@media screen and (max-width:782px){
  .admin-bar .elementor-location-header{top:calc(46px - var(--pw-promo-h, 44px));}
}
@media screen and (max-width:600px){
  /* WP's admin bar is not fixed at this width. */
  .admin-bar .elementor-location-header{top:calc(var(--pw-promo-h, 44px) * -1);}
}

/* ---- mega menu ----------------------------------------------------------
 * Elementor sets --stretch-width/--stretch-left from JS; pw-header.js does the
 * same. Until it runs, keep closed panels out of layout (they already are:
 * .e-n-menu-content>.e-con:not(.e-active){display:none}). */
.elementor-widget-n-menu .e-n-menu-wrapper{--stretch-width:100vw;}

/* The mobile drawer animates its max-height (source: .3s). */
.elementor-widget-n-menu .e-n-menu[data-layout=dropdown] .e-n-menu-wrapper{transition:max-height .3s;}

/* ---- currency pill fallback ---------------------------------------------
 * Shown only until the woo phase hooks 'pw_currency_switcher'. Same look as the
 * source pepsdata pill (plugins/pepsdata/assets/css/currency-switcher.css, as
 * flattened by pw-header.css); not interactive. */
.pw-currency-fallback{position:relative;display:inline-block;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,sans-serif;}
.pw-currency-fallback .pepsdata-currency-dropdown{position:relative;}
.pw-currency-fallback .pepsdata-currency-current{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:170px;padding:10px 20px;border-radius:999px;border:1px solid #0f5c33;background:linear-gradient(135deg,#1f7a3d,#0f5c33);color:#fff;font-size:14px;font-weight:600;letter-spacing:0.02em;white-space:nowrap;box-sizing:border-box;}
.pw-currency-fallback .currency-display{display:inline-flex;align-items:center;gap:10px;}
.pw-currency-fallback .currency-flag{font-size:20px;line-height:1;}
.pw-currency-fallback .currency-code{display:inline-flex;align-items:baseline;gap:6px;text-transform:uppercase;}
.pw-currency-fallback .currency-symbol{font-weight:600;}
.pw-currency-fallback .currency-code-text{font-weight:700;}
.pw-currency-fallback .currency-chevron{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;border-radius:50%;background:rgba(255,255,255,0.16);color:#fff;font-size:11px;line-height:1;}

/* ---- footer newsletter: Elementor form messages --------------------------
 * Elementor's form JS appends .elementor-message after the fields; colours from
 * widget-form.min.css. Only the footer's dark ground needs lighter text. */
.pw-footer .pw-hfoot-news .elementor-message{margin:10px 0 0;font-size:13px;line-height:1.4;}
.pw-footer .pw-hfoot-news .elementor-message.elementor-message-success{color:#9FD07E;}
.pw-footer .pw-hfoot-news .elementor-message.elementor-message-danger{color:#F0A39A;}
.pw-footer .pw-hfoot-news .elementor-message:before{display:none;}
.pw-footer .pw-hfoot-news form[aria-busy=true] button[type=submit]{opacity:.65;pointer-events:none;}
