/* ZGO 1.3.8 — single product (mobile-first) */
.zprod { font-family: var(--z-font); color: var(--z-ink); background: #fff; }
.zprod *, .zprod *::before, .zprod *::after { box-sizing: border-box; }

/* Tighter content column than global --z-max (1200) — more side breathing room */
.zprod .zwrap {
  --zp-max: 1040px;
  max-width: calc(var(--zp-max) + 2 * var(--z-gutter));
}
@media (min-width: 768px) {
  .zprod .zwrap { --zp-max: 1080px; }
}
@media (min-width: 1024px) {
  .zprod { --z-gutter: 40px; }
  .zprod .zwrap {
    --zp-max: 1080px;
    padding-left: var(--z-gutter);
    padding-right: var(--z-gutter);
  }
}

.wp-site-blocks > main.zprod, .wp-site-blocks > .zprod { margin-top: 0 !important; }
body.single-product .wp-site-blocks > footer.wp-block-template-part { margin-top: 0 !important; }

/* Kill default Woo/TT5 product chrome when our template is used */
body.single-product .woocommerce-product-gallery { display: none !important; }
body.single-product div.product .onsale { display: none !important; }

/* Breadcrumbs — same as shop (.zs-crumbs lives in zgo-shop.css; product page
   does not load shop CSS, so unstyled <ol> looked like a broken top menu). */
.zprod .zs-crumbs { margin: 0 0 14px; }
.zprod .zs-crumbs ol {
  display: flex; flex-wrap: wrap; gap: 8px 0; align-items: center;
  list-style: none !important; margin: 0; padding: 0;
  font-size: 15px; line-height: 1.5; color: var(--z-g500);
  counter-reset: none;
}
@media (min-width: 768px) {
  .zprod .zs-crumbs ol { font-size: 16px; line-height: 1.5; }
}
.zprod .zs-crumbs li {
  display: inline-flex; align-items: center; gap: 6px;
  list-style: none !important;
}
.zprod .zs-crumbs li::marker { content: '' !important; }
.zprod .zs-crumbs li:not(:last-child)::after {
  content: "/"; margin-left: 6px; color: var(--z-g300); font-weight: 500;
}
.zprod .zs-crumbs a {
  color: var(--z-g600); text-decoration: none; font-weight: 650;
  font-size: inherit; line-height: inherit;
  min-height: 44px; display: inline-flex; align-items: center;
}
.zprod .zs-crumbs a:hover { color: var(--z-pink); }
.zprod .zs-crumbs [aria-current="page"] { color: var(--z-ink); font-weight: 700; }

/* Product long description (post_content) */
.zp-desc {
  margin-top: 20px; padding: 18px 16px;
  border: 1px solid var(--z-g200); border-radius: var(--z-r);
  background: #fff; box-shadow: var(--z-sh-sm);
}
.zp-desc__title {
  margin: 0 0 10px !important;
  font-size: 18px; font-weight: 800; letter-spacing: -.02em;
}
.zp-desc__body {
  font-size: 14.5px; line-height: 1.55; color: var(--z-g700);
}
.zp-desc__body > *:first-child { margin-top: 0 !important; }
.zp-desc__body > *:last-child { margin-bottom: 0 !important; }
.zp-desc__body h3, .zp-desc__body h4 {
  margin: 0 0 8px !important;
  font-size: 15px; font-weight: 750; color: var(--z-ink);
}
.zp-desc__body ul, .zp-desc__body ol {
  margin: 0 0 12px; padding-left: 1.15em;
}
.zp-desc__body li { margin: 0 0 6px; }
.zp-desc__body p { margin: 0 0 10px !important; }
.zp-desc__note {
  margin: 12px 0 0 !important;
  font-size: 12.5px; color: var(--z-g500);
}

/* Soften WooCommerce header collisions on product templates */
body.single-product .zh,
body.single-product header.wp-block-template-part .zh {
  position: relative; z-index: 40; background: #fff;
}
body.single-product header.wp-block-template-part {
  margin: 0 !important; padding: 0 !important;
  max-width: none !important; width: 100%;
}
body.single-product .wp-site-blocks > header.wp-block-template-part {
  margin-block-start: 0 !important;
}


.zp-hero {
  padding: 24px 0 8px;
  background:
    radial-gradient(800px 280px at 0% -20%, rgba(255,45,120,.10), transparent 60%),
    radial-gradient(700px 260px at 100% 0%, rgba(0,201,167,.10), transparent 55%),
    #fff;
}
.zp-hero__row { display: flex; align-items: flex-start; gap: 16px; margin-top: 4px; }
.zp-hero__flagwrap { flex: none; }
.zp-hero__flag {
  width: 64px; height: 64px; border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 3px #fff, 0 8px 24px rgba(8,12,28,.12);
  background: var(--z-g100);
}
.zp-hero__flag.is-blank {
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--z-g500); border-radius: 50%; background: var(--z-g100);
}
.zp-hero__title {
  margin: 0 0 8px !important;
  font-size: 28px; line-height: 1.15; font-weight: 800; letter-spacing: -.03em;
}
.zp-hero__sub {
  margin: 0 !important; max-width: 40rem;
  font-size: 15px; line-height: 1.55; color: var(--z-g600);
}

.zp-trust {
  list-style: none; margin: 22px 0 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.zp-trust li {
  display: flex; align-items: flex-start; gap: 10px;
  min-height: 56px; padding: 12px;
  border: 1px solid var(--z-g200); border-radius: var(--z-r-sm); background: #fff;
  font-size: 12.5px; line-height: 1.35; color: var(--z-g600);
}
.zp-trust strong { display: block; color: var(--z-ink); font-size: 13.5px; font-weight: 750; }
.zp-trust__ico {
  flex: none; width: 36px; height: 36px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
}
.zp-trust__ico--pink { background: var(--z-pink-50); color: var(--z-pink); }
.zp-trust__ico--teal { background: var(--z-teal-50); color: var(--z-teal-600); }
.zp-trust__ico--yellow { background: var(--z-yellow-50); color: #b45309; }
.zp-trust__ico--ink { background: var(--z-g100); color: var(--z-ink); }

.zp-buy { padding: 28px 0 48px; }
.zp-buy__grid { display: grid; gap: 20px; }

.zp-panel {
  border: 1px solid var(--z-g200); border-radius: var(--z-r-lg);
  background: #fff; box-shadow: var(--z-sh-sm);
  padding: 18px 16px 20px;
}
.zp-panel__title {
  margin: 0 0 6px !important;
  font-size: 20px; font-weight: 800; letter-spacing: -.02em;
}
.zp-panel__hint { margin: 0 0 16px !important; font-size: 14px; color: var(--z-g600); }

.zp-tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  margin-bottom: 14px; padding: 4px; border-radius: 999px; background: var(--z-g100);
}
.zp-tabs:has(.zp-tab:only-child) { grid-template-columns: 1fr; }
.zp-tab {
  min-height: 48px; border: 0; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--z-g700);
  font: 750 14px/1 var(--z-font); letter-spacing: -.01em;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.zp-tab.is-active {
  background: #fff; color: var(--z-ink);
  box-shadow: var(--z-sh-sm);
}
.zp-tab[data-zp-tab="unlimited"].is-active { color: var(--z-teal-600); }
.zp-tab[data-zp-tab="fixed"].is-active { color: var(--z-pink); }

.zp-cards {
  display: grid; grid-template-columns: 1fr; gap: 10px;
  margin-bottom: 18px; max-height: 420px; overflow-y: auto;
  padding-right: 2px; -webkit-overflow-scrolling: touch;
}
.zp-card {
  display: grid; grid-template-columns: 1fr auto; gap: 8px 12px;
  align-items: center; width: 100%; text-align: left;
  min-height: 64px; padding: 14px 14px;
  border: 1.5px solid var(--z-g200); border-radius: var(--z-r);
  background: #fff; cursor: pointer;
  font: inherit; color: inherit;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.zp-card:hover { border-color: rgba(255,45,120,.45); }
.zp-card.is-selected {
  border-color: var(--z-pink);
  background: var(--z-pink-50);
  box-shadow: 0 0 0 3px rgba(255,45,120,.12);
}
.zp-card.is-selected[data-kind="unlimited"] {
  border-color: var(--z-teal);
  background: var(--z-teal-50);
  box-shadow: 0 0 0 3px rgba(0,201,167,.15);
}
.zp-card__main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.zp-card__data { font-size: 16px; font-weight: 800; letter-spacing: -.015em; }
.zp-card__meta { font-size: 13px; color: var(--z-g600); }
.zp-card__price { font-size: 18px; font-weight: 800; color: var(--z-ink); white-space: nowrap; }
.zp-card.is-selected .zp-card__price { color: var(--z-pink); }
.zp-card.is-selected[data-kind="unlimited"] .zp-card__price { color: var(--z-teal-600); }
.zp-cards__empty { margin: 0 0 16px !important; font-size: 14px; color: var(--z-g600); }


/* Unlimited multi-day picker (periodNum — same packageCode) */
.zp-days { margin: 4px 0 18px; }
.zp-days__label {
  margin: 0 0 10px !important;
  font-size: 14px; font-weight: 750; color: var(--z-ink);
}
.zp-days__chips {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.zp-day {
  min-height: 40px; padding: 8px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--z-g200);
  background: #fff; color: var(--z-ink);
  font: 700 13.5px/1.2 var(--z-font);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
}
.zp-day:hover { border-color: var(--z-teal); }
.zp-day.is-selected {
  border-color: var(--z-teal);
  background: var(--z-teal-50);
  color: var(--z-teal-600);
  box-shadow: 0 0 0 3px rgba(0,201,167,.15);
}
.zp-days__hint {
  margin: 10px 0 0 !important;
  font-size: 12.5px; line-height: 1.45; color: var(--z-g500);
}
.zp-form .zp-price-note {
  font-size: 13px; font-weight: 600; color: var(--z-g600);
}

/* Native WC form — keep functional, polish layout */
.zp-form .woocommerce-variation-add-to-cart,
.zp-form .variations_button {
  display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px;
  margin-top: 8px !important;
}
.zp-form table.variations {
  /* Visually de-emphasized; cards drive selection. Keep in DOM for WC JS + a11y fallback. */
  position: absolute !important;
  width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: -1px !important;
  overflow: hidden !important; clip: rect(0,0,0,0) !important;
  white-space: nowrap !important; border: 0 !important;
}
.zp-form .reset_variations { display: none !important; }
.zp-form .woocommerce-variation {
  /* 1.5.1: drop empty wide price frame — price sits flush above CTA */
  margin: 0 0 10px !important;
  padding: 0 !important;
  border-radius: 0;
  background: transparent;
  border: 0;
  min-height: 0;
  width: 100%;
}
.zp-form .woocommerce-variation[style*="display: none"],
.zp-form .woocommerce-variation[hidden] { display: none !important; }
.zp-form .woocommerce-variation-description { display: none !important; } /* noisy concatenated text */
.zp-form .woocommerce-variation-price {
  width: 100%;
}
.zp-form .woocommerce-variation-price .price,
.zp-form .woocommerce-variation-price .amount {
  display: block !important;
  width: 100%;
  margin: 0 !important;
  font-size: 30px !important; font-weight: 800 !important;
  color: var(--z-ink) !important; letter-spacing: -.02em;
  line-height: 1.15 !important;
}
.zp-form .woocommerce-variation-availability { font-size: 13px; color: var(--z-g600); margin-top: 4px; }

.zp-form .quantity { display: none !important; } /* eSIM: always qty 1 */
.zp-form button.single_add_to_cart_button,
.zp-form .single_add_to_cart_button {
  flex: 1 1 100%;
  width: 100% !important;
  max-width: none !important;
  min-height: 52px !important;
  border-radius: 999px !important;
  border: 0 !important;
  background: var(--z-pink) !important;
  color: #fff !important;
  font: 800 16px/1 var(--z-font) !important;
  letter-spacing: -.01em !important;
  box-shadow: 0 10px 24px -8px rgba(255,45,120,.55) !important;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease !important;
}
.zp-form button.single_add_to_cart_button:hover,
.zp-form .single_add_to_cart_button:hover {
  background: var(--z-pink-600) !important; color: #fff !important; transform: translateY(-1px);
}
.zp-form button.single_add_to_cart_button:disabled,
.zp-form .single_add_to_cart_button.disabled,
.zp-form .single_add_to_cart_button.wc-variation-is-unavailable,
.zp-form .single_add_to_cart_button.wc-variation-selection-needed {
  opacity: .45 !important; cursor: not-allowed !important; transform: none !important;
  box-shadow: none !important;
}

.zp-form .woocommerce-message,
.zp-form .woocommerce-info,
.zp-form .woocommerce-error {
  border-radius: var(--z-r-sm); margin-bottom: 12px !important;
}

.zp-side { display: none; }
.zp-side__card {
  border: 1px solid var(--z-g200); border-radius: var(--z-r-lg);
  padding: 20px; background: var(--z-g50);
}
.zp-side__label { margin: 0 !important; font-size: 13px; font-weight: 700; color: var(--z-g500); text-transform: uppercase; letter-spacing: .06em; }
.zp-side__price { margin: 4px 0 16px !important; font-size: 36px; font-weight: 800; letter-spacing: -.03em; color: var(--z-ink); }
.zp-side__list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.zp-side__list li {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 14px; color: var(--z-g700); line-height: 1.4;
}
.zp-side__list .zi { color: var(--z-teal-600); flex: none; margin-top: 2px; }

.zp-related { padding: 8px 0 64px; background: var(--z-g50); }
.zp-related .zsec__head { margin-bottom: 20px; }
.zp-related__grid.zdest { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.zp-related__grid .zdest__card { min-width: 0; }

@media (min-width: 768px) {
  .zp-hero { padding: 32px 0 12px; }
  .zp-hero__title { font-size: 36px; }
  .zp-hero__flag { width: 72px; height: 72px; }
  .zp-trust { grid-template-columns: repeat(4, 1fr); }
  .zp-cards { grid-template-columns: 1fr 1fr; max-height: 480px; }
  .zp-panel { padding: 24px; }
  .zp-related__grid.zdest { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .zp-buy__grid { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; gap: 24px; }
  .zp-side { display: block; position: sticky; top: 88px; }
  .zp-hero__title { font-size: 40px; }
  .zp-form button.single_add_to_cart_button { flex: 1 1 100%; max-width: none; width: 100%; }
}
@media (min-width: 1440px) {
  .zp-hero { padding: 40px 0 16px; }
}

/* Keep native fields >=16px if ever unhidden (iOS zoom). */
.zp-form select,
.zp-form input[type="number"],
.zp-form input[type="text"] { font-size: 16px !important; }


.zp-desc__facts {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 8px;
}
.zp-desc__facts li {
  font-size: 14px; line-height: 1.45; color: var(--z-g700);
  padding: 8px 0; border-bottom: 1px solid var(--z-g100);
}
.zp-desc__facts li:last-child { border-bottom: 0; padding-bottom: 0; }
.zp-desc__facts strong { color: var(--z-ink); font-weight: 750; margin-right: 6px; }

/* Live selected-plan details (updates with variation) */
.zp-plan {
  margin: 4px 0 16px; padding: 14px 14px 12px;
  border: 1.5px solid var(--z-g200); border-radius: var(--z-r);
  background: linear-gradient(180deg, #fff 0%, var(--z-g50, #f8fafc) 100%);
}
.zp-plan[data-kind="fixed"] { border-color: rgba(255,45,120,.35); }
.zp-plan[data-kind="unlimited"] { border-color: rgba(0,201,167,.4); }
.zp-plan__title {
  margin: 0 0 4px !important;
  font-size: 13px; font-weight: 750; letter-spacing: .04em;
  text-transform: uppercase; color: var(--z-g500);
}
.zp-plan__name {
  margin: 0 0 10px !important;
  font-size: 17px; font-weight: 800; letter-spacing: -.02em; color: var(--z-ink);
}
.zp-plan__dl { margin: 0; display: grid; gap: 6px; }
.zp-plan__row {
  display: grid; grid-template-columns: 7.5rem 1fr; gap: 8px;
  font-size: 13.5px; line-height: 1.4;
}
.zp-plan__row dt { margin: 0; color: var(--z-g500); font-weight: 650; }
.zp-plan__row dd { margin: 0; color: var(--z-ink); font-weight: 600; }
@media (min-width: 768px) {
  .zp-plan__row { grid-template-columns: 8.5rem 1fr; font-size: 14px; }
}

.zp-about { padding: 8px 0 40px; }
.zp-about .zp-desc { margin-top: 0; }
@media (min-width: 1024px) {
  .zp-about { padding: 4px 0 56px; }
}


/* ——— 1.5.1 buy-box express + purchase stack ——— */
.zp-form .woocommerce-variation-add-to-cart,
.zp-form .variations_button {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 10px;
  width: 100%;
  margin-top: 4px !important;
}

/* Stripe Express Checkout under ATC — width/gap only; NO extra chrome
   (light-outline + wrapper radius caused double/triple outlines). */
.zprod #wc-stripe-express-checkout-element,
.zp-buy #wc-stripe-express-checkout-element,
.single-product #wc-stripe-express-checkout-element,
.zprod .wc-stripe-product-express-checkout,
.single-product .wc-stripe-product-express-checkout {
  width: 100% !important;
  max-width: 100% !important;
  margin: 12px 0 0 !important;
  padding: 0 !important;
  clear: both;
  display: flex !important;
  flex-direction: column;
  gap: 10px;
  box-sizing: border-box;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}
.zprod #wc-stripe-express-checkout-element > div,
.zp-buy #wc-stripe-express-checkout-element > div,
.single-product #wc-stripe-express-checkout-element > div,
.zprod #wc-stripe-express-checkout-element .StripeElement,
.single-product #wc-stripe-express-checkout-element .StripeElement,
.zprod #wc-stripe-express-checkout-element-applePay,
.zprod #wc-stripe-express-checkout-element-googlePay,
.zprod #wc-stripe-express-checkout-element-link,
.single-product #wc-stripe-express-checkout-element-applePay,
.single-product #wc-stripe-express-checkout-element-googlePay,
.single-product #wc-stripe-express-checkout-element-link {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  border-radius: 0 !important;
  overflow: visible !important;
  min-height: 0;
}
/* Hide slots that never mounted a control */
.zprod #wc-stripe-express-checkout-element > div:not(:has(iframe)),
.single-product #wc-stripe-express-checkout-element > div:not(:has(iframe)) {
  display: none !important;
}
.zprod #wc-stripe-express-checkout-element iframe,
.single-product #wc-stripe-express-checkout-element iframe,
.zprod #wc-stripe-express-checkout-element .__PrivateStripeElement,
.single-product #wc-stripe-express-checkout-element .__PrivateStripeElement {
  width: 100% !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  background: transparent !important;
}

/* ——— 1.8.0 D1: buy CTA always reachable ——— */
.zp-plan__title { font-size: 13px; }
.zp-plan__more { margin: 0; }
.zp-plan__toggle {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  font: 700 14px/1.2 var(--z-font); color: var(--z-ink); cursor: pointer; list-style: none;
}
.zp-plan__toggle::-webkit-details-marker { display: none; }
.zp-plan__toggle::after {
  content: ""; width: 8px; height: 8px; margin-left: 2px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px); transition: transform .15s ease;
}
.zp-plan__more[open] .zp-plan__toggle::after { transform: rotate(-135deg) translateY(-2px); }
.zp-plan__more[open] .zp-plan__dl { margin-top: 6px; }

.zp-sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: #fff; border-top: 1px solid var(--z-g200);
  box-shadow: 0 -4px 16px rgba(8,12,28,.08);
  font-family: var(--z-font);
  transform: translateY(110%); transition: transform .2s ease; visibility: hidden;
}
.zp-sticky.is-on { transform: none; visibility: visible; }
.zp-sticky__info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.zp-sticky__name { font-size: 13px; font-weight: 600; color: var(--z-g600); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zp-sticky__price { font-size: 20px; font-weight: 800; letter-spacing: -.02em; color: var(--z-ink); line-height: 1.1; }
.zp-sticky__btn, .zp-side__buy {
  flex: none; min-height: 48px; padding: 0 22px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--z-pink-btn, #dc0f5f); color: #fff;
  font: 700 15px/1 var(--z-font); letter-spacing: -.005em;
  box-shadow: 0 8px 20px -6px rgba(220,15,95,.5);
  transition: background .15s ease, transform .15s ease;
}
.zp-sticky__btn:hover, .zp-side__buy:hover { background: #c00d52; }
.zp-sticky__btn:active, .zp-side__buy:active { transform: scale(.97); }
.zp-sticky__btn:focus-visible, .zp-side__buy:focus-visible { outline: 2px solid var(--z-ink); outline-offset: 2px; }
body.zp-sticky-on .wp-site-blocks > footer.wp-block-template-part { padding-bottom: 80px !important; }
@media (min-width: 1024px) {
  .zp-sticky { display: none; }
  body.zp-sticky-on .wp-site-blocks > footer.wp-block-template-part { padding-bottom: 0 !important; }
}
.zp-side__plan { margin: 2px 0 0 !important; font-size: 15px; font-weight: 700; color: var(--z-ink); }
.zp-side__price { margin-bottom: 14px !important; }
.zp-side__buy { width: 100%; margin: 0 0 18px; }

/* ——— 1.8.0 D2: no nested scroll; first 8 + "Show all" ——— */
.zp-cards, .zp-cards[data-zp-cards] { max-height: none !important; overflow: visible !important; padding-right: 0; }
@media (min-width: 768px) { .zp-cards { max-height: none !important; } }
.zp-card[data-zp-more] { display: none !important; }
.zp-showall {
  grid-column: 1 / -1; min-height: 48px; width: 100%;
  border: 1px solid var(--z-g200); border-radius: 999px; background: #fff; cursor: pointer;
  font: 700 15px/1 var(--z-font); color: var(--z-ink);
  transition: border-color .15s ease, background .15s ease;
}
.zp-showall:hover { border-color: var(--z-g300); background: var(--z-g50); }
.zp-showall:focus-visible { outline: 2px solid var(--z-pink); outline-offset: 2px; }
