/* Live-theme experience fixes, loaded last. */

/* Prevent the unprocessed product story from flashing inside the buy panel. */
body[data-page-type="product"] .product-detail__info .product-description:not(.zernto-product-story) {
  display: none !important;
}
body[data-page-type="product"] .product-description.zernto-product-story {
  display: block !important;
}

/* Seven primary links remain on one line beside the logo. */
@media (min-width: 960px) {
  .header__container[layout="left_logo_left_menu"] .header-nav__menu-item {
    margin-inline: clamp(7px, .72vw, 14px);
  }
  .header__container[layout="left_logo_left_menu"] .header-nav__menu-item > a {
    font-size: clamp(12px, .78vw, 15px);
  }
}

/* Make wallet and card choices readable at the same time. */
.zernto-payment-strip {
  grid-template-columns: minmax(180px,.7fr) minmax(360px,1.3fr) !important;
  align-items: stretch !important;
  gap: 14px !important;
  padding: 14px !important;
}
.zernto-payment-strip__methods { display: grid; gap: 10px; min-width: 0; }
.zernto-payment-strip__group {
  display: grid;
  grid-template-columns: 92px minmax(0,1fr);
  align-items: center;
  gap: 9px;
}
.zernto-payment-strip__group > span {
  color: var(--z-muted,#6f6172);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.zernto-payment-strip__group ul {
  display: flex !important;
  flex-wrap: nowrap !important;
  justify-content: flex-start !important;
  gap: 7px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
.zernto-payment-strip__group.is-wallets .zernto-payment-brand { width: 78px !important; height: 34px !important; }
.zernto-payment-strip__group.is-wallets .zernto-payment-brand.is-paypal { width: 86px !important; }
.zernto-payment-strip__group.is-cards .zernto-payment-brand { width: 46px !important; height: 29px !important; }

/* The four-option product dock owns this space on every product page. */
body[data-page-type="product"] .zernto-floating-actions { display: none !important; }
.zernto-product-nav { grid-template-columns: repeat(4,minmax(0,1fr)) !important; }

/* Keep the footer brand, newsletter and market controls visually connected. */
.zernto-footer-brand {
  flex: none !important;
  min-width: max-content !important;
  margin: 0 !important;
  white-space: nowrap !important;
}
.zernto-footer-brand__name {
  display: inline-block !important;
  white-space: nowrap !important;
  word-break: keep-all !important;
}
footer.footer .footer__copyright,
footer.footer .footer__copyright-text {
  min-width: max-content !important;
  margin: 0 !important;
  padding: 0 !important;
  white-space: nowrap !important;
  word-break: keep-all !important;
}
footer.footer .footer__localization-form form {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}
footer.footer .footer__localization-form .localization__selector {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  min-width: 138px !important;
  height: 46px !important;
  margin: 0 !important;
  gap: 10px !important;
  padding-inline: 12px 16px !important;
  overflow: hidden !important;
  border: 1px solid rgba(255,184,99,.38) !important;
  border-radius: 999px !important;
  background: #241020 !important;
  color: #fff !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 8px 24px rgba(0,0,0,.2) !important;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease !important;
}
footer.footer .footer__localization-form .localization__selector:hover,
footer.footer .footer__localization-form .localization__selector:focus-visible {
  border-color: rgba(255,184,99,.8) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 10px 28px rgba(0,0,0,.26) !important;
  transform: translateY(-1px) !important;
}
footer.footer .footer__localization-form .localization__selector::before {
  position: relative !important;
  z-index: 2 !important;
  display: grid !important;
  flex: 0 0 26px !important;
  width: 26px !important;
  height: 26px !important;
  place-items: center !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg,#ff8b3d,#be2f72) !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 850 !important;
  line-height: 1 !important;
  box-shadow: 0 4px 12px rgba(190,47,114,.28) !important;
}
footer.footer .footer__localization-form .localization__selector:has(select[name="locale_code"])::before {
  content: "\6587" !important;
}
footer.footer .footer__localization-form .localization__selector:has(select[name="country_code"])::before {
  content: "$" !important;
}
footer.footer .footer__localization-form .localization__selector:last-of-type {
  min-width: 230px !important;
}
footer.footer .footer__localization-form .theme-select__placeholder {
  z-index: 2 !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  overflow: hidden !important;
  color: #fff !important;
  background: transparent !important;
  visibility: visible !important;
  font-weight: 700 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
footer.footer .footer__localization-form .theme-select__arrow {
  z-index: 2 !important;
  flex: none !important;
  color: #fff !important;
}
footer.footer .footer__localization-form .theme-select__float {
  opacity: 0 !important;
  background: transparent !important;
}

@media (min-width: 960px) {
  footer.footer .footer__inner > :nth-child(2) {
    display: grid !important;
    grid-template-columns: minmax(160px,max-content) minmax(0,1fr) !important;
    align-items: center !important;
    gap: 28px !important;
  }
  footer.footer .footer__inner > :nth-child(2) .footer__email-subscribe {
    min-width: 0 !important;
  }
  footer.footer .footer__inner > :nth-child(3) {
    align-items: center !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 15px 0 10px !important;
    border-top: 1px solid rgba(255,255,255,.1) !important;
  }
  footer.footer .footer__inner > :nth-child(4) {
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
}

@media (max-width: 959px) {
  .zernto-payment-strip { grid-template-columns: 1fr !important; }
  .zernto-payment-strip__group { grid-template-columns: 1fr; gap: 6px; }
  .zernto-payment-strip__group ul { flex-wrap: wrap !important; }
  .zernto-payment-strip__group.is-wallets .zernto-payment-brand {
    flex: 1 1 78px;
    width: auto !important;
    max-width: 108px;
  }
  .zernto-product-nav {
    bottom: calc(10px + env(safe-area-inset-bottom)) !important;
    width: calc(100vw - 16px) !important;
  }
  .zernto-viewed-popover {
    right: 8px !important;
    bottom: calc(76px + env(safe-area-inset-bottom)) !important;
    width: calc(100vw - 16px) !important;
    max-height: 68vh !important;
  }
  footer.footer .footer__inner {
    gap: 20px !important;
  }
  footer.footer .footer__inner > :nth-child(2) {
    align-items: stretch !important;
    gap: 16px !important;
  }
  footer.footer .zernto-footer-brand {
    align-self: flex-start !important;
  }
  footer.footer .zernto-footer-brand__name {
    font-size: 22px !important;
  }
  footer.footer .footer__inner > :nth-child(3) {
    width: 100% !important;
    gap: 14px !important;
    margin: 0 !important;
    padding: 14px 0 8px !important;
    border-top: 1px solid rgba(255,255,255,.1) !important;
  }
  footer.footer .footer__localization-form {
    width: 100% !important;
  }
  footer.footer .footer__localization-form form {
    display: grid !important;
    grid-template-columns: minmax(0,.78fr) minmax(0,1.22fr) !important;
    width: 100% !important;
  }
  footer.footer .footer__localization-form .localization__selector,
  footer.footer .footer__localization-form .localization__selector:last-of-type {
    width: 100% !important;
    min-width: 0 !important;
    height: 44px !important;
    padding-inline: 13px !important;
  }
  footer.footer .footer__payment-icons {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 6px !important;
  }
  footer.footer .footer__inner > :nth-child(4) {
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
}

