/* Header remains the single visible entry on desktop and non-product pages. */
body .rf-region-price-trigger { display: none; }
@supports selector(body:has(main)) {
  @media (max-width:749px) {
    body[data-page-type="product"]:has(main .product-detail__price > [data-rf-region-price]) header theme-action-bar.right > [data-zernto-region-trigger] { display: none !important; }
    body[data-page-type="product"] main .product-detail__price:has(> [data-rf-region-price]) {
      display: grid; grid-template-columns: minmax(0,1fr) auto; column-gap:12px; row-gap:4px; align-items:center;
    }
    body[data-page-type="product"] main .product-detail__price > .product-price { grid-column:1; grid-row:1; min-width:0; margin:0; }
    body[data-page-type="product"] main .product-detail__price > .rf-region-price-trigger {
      display:inline-flex; grid-column:2; grid-row:1; align-items:center; justify-content:center; gap:6px;
      min-width:0; min-height:44px; padding:8px 10px; margin:0; box-sizing:border-box;
      border:1px solid #d9e2d9; border-radius:24px; background:#f8f8f0; color:#184c3b;
      box-shadow:none; font-family:inherit; font-size:12px; font-weight:600; line-height:1.2; white-space:nowrap; direction:ltr;
      cursor:pointer; -webkit-tap-highlight-color:transparent;
    }
    body[data-page-type="product"] main .product-detail__price > .rf-region-price-trigger:disabled {opacity:1;cursor:wait;}
    body[data-page-type="product"] main .rf-region-price-trigger .zernto-region-trigger__labels {display:flex;flex-direction:row;align-items:center;gap:4px;line-height:1.2;}
    body[data-page-type="product"] main .rf-region-price-trigger .zernto-region-trigger__country {display:none;}
    body[data-page-type="product"] main .rf-region-price-trigger .zernto-region-trigger__code,
    body[data-page-type="product"] main .rf-region-price-trigger .zernto-region-trigger__currency {display:inline;font-size:11px;font-weight:650;letter-spacing:.01em;}
    body[data-page-type="product"] main .rf-region-price-trigger .rf-region-price-trigger__separator {font-size:11px;color:#83978b;}
    body[data-page-type="product"] main .rf-region-price-trigger .zernto-region-trigger__globe {width:16px;height:16px;flex:none;}
    body[data-page-type="product"] main .rf-region-price-trigger .zernto-region-trigger__chevron {width:9px;height:9px;flex:none;}
    body[data-page-type="product"] main .rf-region-price-trigger:focus-visible {outline:2px solid #bc9755;outline-offset:3px;}
    body[data-page-type="product"] main .rf-region-price-trigger:active {background:#edf1e8;}
    body[data-page-type="product"] main .product-detail__price:has(> [data-rf-region-price]) > :not(.product-price):not(.rf-region-price-trigger) {grid-column:1/-1;}
  }
}
/* Without scripting, keep the native header/footer localization fallback. */
@media(max-width:359px) {
  body[data-page-type="product"] main .product-detail__price > .rf-region-price-trigger {padding-inline:8px;gap:4px;}
}
/* Render the final region control with the header, not after hydration. */
header theme-action-bar.right > [data-rf-region-ssr] ~ theme-locale-picker { display: none !important; }
header theme-action-bar.right > .zernto-region-trigger {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 8px 14px; border: 1px solid rgba(38,22,39,.16);
  border-radius: 24px; background: #fffaf4; color: #184c3b; cursor: pointer;
  font: inherit; white-space: nowrap; flex-shrink: 0;
}
header theme-action-bar.right > .zernto-region-trigger:disabled { opacity: 1; cursor: wait; }
header .zernto-region-trigger svg { flex: none; }
header .zernto-region-trigger__globe { width: 20px; height: 20px; }
header .zernto-region-trigger__chevron { width: 12px; height: 12px; }
header .zernto-region-trigger__labels { display: flex; align-items: center; gap: 7px; }
header .zernto-region-trigger__code { display: none; }
header .zernto-region-trigger__currency { font-size: 12px; font-weight: 650; }
header .zernto-region-trigger__country { font-size: 13px; max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
header .zernto-region-trigger:focus-visible { outline: 2px solid #bc9755; outline-offset: 3px; }
/* Also tolerate an older cached initializer during a rolling theme update. */
html[data-zernto-region-ready] header [data-rf-region-ssr]:not([data-rf-region-bound]) { display: none !important; }
@media(max-width:749px) {
  header theme-action-bar.right > .zernto-region-trigger { gap: 4px; min-width: 62px; min-height: 44px; padding: 4px 6px; border-radius: 12px; direction: ltr; }
  header .zernto-region-trigger__globe { width: 15px; height: 15px; }
  header .zernto-region-trigger__chevron { width: 9px; height: 9px; }
  header .zernto-region-trigger__labels { flex-direction: column; gap: 1px; line-height: 1.15; }
  header .zernto-region-trigger__country { display: none; }
  header .zernto-region-trigger__code { display: block; font-size: 11px; font-weight: 700; letter-spacing: .02em; }
  header .zernto-region-trigger__currency { font-size: 10px; line-height: 1.15; letter-spacing: .02em; }
  html[data-rf-region-ssr] header .header__container-top-wrap { grid-template-columns: 30px minmax(0,1fr) auto !important; gap: 6px !important; padding-left: 12px !important; padding-right: 12px !important; }
  html[data-rf-region-ssr] header .header-action-bar.right { gap: 2px !important; }
  html[data-rf-region-ssr] header .header__logo-text { white-space: nowrap !important; font-size: clamp(22px,6vw,30px) !important; }
  html[data-rf-region-ssr] header .header__logo { min-width: 0 !important; }
  html[data-rf-region-ssr] header .header-action-bar.right > div.button--icon { width: 44px !important; min-width: 44px !important; flex-shrink: 0; }
}
