/* 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;
}

@media (min-width: 960px) {
  html:is([lang^="de"],[lang^="sv"],[lang^="nb"],[lang^="nl"],[lang^="da"]) .header-nav__menu {
    display: flex !important;
    flex-wrap: nowrap !important;
    column-gap: 10px !important;
  }
  html:is([lang^="de"],[lang^="sv"],[lang^="nb"],[lang^="nl"],[lang^="da"]) .header-nav__menu-item {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: max-content !important;
    margin-inline: 0 !important;
  }
  html:is([lang^="de"],[lang^="sv"],[lang^="nb"],[lang^="nl"],[lang^="da"]) .header-nav__underline,
  html:is([lang^="de"],[lang^="sv"],[lang^="nb"],[lang^="nl"],[lang^="da"]) .header-nav__ellipsis {
    display: inline-block !important;
    width: auto !important;
    min-width: max-content !important;
    max-width: none !important;
    overflow: visible !important;
    white-space: nowrap !important;
    text-overflow: clip !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
  }
  html:is([lang^="de"],[lang^="sv"],[lang^="nb"],[lang^="nl"],[lang^="da"]) .header-nav__ellipsis {
    font-size: clamp(12px, .9vw, 14px) !important;
    letter-spacing: normal !important;
  }
}
body[data-page-type="product"] .product-description.zernto-product-story {
  display: block !important;
}
body[data-page-type="product"] theme-product-detail .product-detail__info > theme-sticky-position > .zernto-product-brief {
  display: none !important;
}

theme-sticky-header.zernto-is-stuck {
  position: fixed !important;
  inset: 0 0 auto !important;
  z-index: 1020 !important;
  width: 100% !important;
  box-shadow: 0 8px 24px rgba(36,16,32,.1) !important;
}

/* Seven primary links remain on one line beside the logo. */
@media (min-width: 960px) {
  body[data-page-type="product"] .product-detail__media-gallery {
    max-width: min(620px, calc(100vh - 230px)) !important;
  }
  .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);
  }
}

/* Give every available accelerated wallet its own full-width row. Hidden
   wallets are removed by SHOPLINE, so unsupported devices never leave an
   empty half-row behind. */
body[data-page-type="product"] .shopline-payment-button-wrapper[data-inject-rendered-buttons] {
  display: grid !important;
  grid-template-columns: minmax(0,1fr) !important;
  gap: 8px !important;
  margin-top: 10px !important;
}
body[data-page-type="product"] .shopline-payment-button-wrapper[data-inject-rendered-buttons] > .pay-button-common-item:not(.pay-button-hide) {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 48px !important;
  height: 48px !important;
  margin: 0 !important;
  overflow: hidden !important;
  border-radius: 999px !important;
}
body[data-page-type="product"] .shopline-payment-button-wrapper[data-inject-rendered-buttons] .pay-button-GooglePay:not(.pay-button-hide) { order: 3; }
body[data-page-type="product"] .shopline-payment-button-wrapper[data-inject-rendered-buttons] .pay-button-ApplePay:not(.pay-button-hide) { order: 4; }
body[data-page-type="product"] .shopline-payment-button-wrapper[data-inject-rendered-buttons] > .zernto-klarna-checkout {
  order: 1;
  grid-column: 1 / -1 !important;
  width: 100% !important;
  margin: 0 !important;
}
body[data-page-type="product"] .shopline-payment-button-wrapper[data-inject-rendered-buttons] > .zernto-card-checkout {
  order: 5;
  grid-column: 1 / -1 !important;
  width: 100% !important;
  margin: 0 !important;
}
body[data-page-type="product"] .shopline-payment-button-wrapper[data-inject-rendered-buttons] .pay-button-Paypal:not(.pay-button-hide) {
  order: 2;
  grid-column: 1 / -1 !important;
}
body[data-page-type="product"] .shopline-payment-button-wrapper[data-inject-rendered-buttons] > .zernto-other-checkout {
  order: 6;
  grid-column: 1 / -1 !important;
  width: 100% !important;
  margin: 0 !important;
}

/* 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; }

/* A real card checkout route alongside the native PayPal, Apple Pay and Google Pay buttons. */
.zernto-card-checkout {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.zernto-card-checkout__copy {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.zernto-card-checkout__copy strong,
.zernto-card-checkout__copy small { display: block; }
.zernto-card-checkout__copy strong { color: #261328; font-size: 13px; line-height: 1.25; }
.zernto-card-checkout__copy small { margin-top: 3px; color: #756777; font-size: 10px; }
.zernto-card-checkout__shield {
  display: grid;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: #fff0e3;
  color: #c7442d;
  font-size: 14px;
  font-weight: 900;
}
.zernto-card-checkout__button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  min-width: 0;
  min-height: 52px;
  padding: 8px 18px;
  border: 0;
  border-radius: 999px;
  background: #241020;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(36,16,32,.16);
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}
.zernto-card-checkout__button:hover,
.zernto-card-checkout__button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 11px 26px rgba(36,16,32,.22);
}
.zernto-card-checkout__button:disabled { cursor: wait; opacity: .7; }
.zernto-card-checkout__label {
  flex: 0 1 auto;
  white-space: nowrap;
}
.zernto-card-checkout__spinner {
  display: inline-block;
  width: 13px;
  height: 13px;
  margin-right: 7px;
  vertical-align: -2px;
  border: 2px solid rgba(255,255,255,.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: zernto-card-checkout-spin .65s linear infinite;
}
@keyframes zernto-card-checkout-spin { to { transform: rotate(360deg); } }
.zernto-card-checkout__brands {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 4px;
  margin: 0;
  padding: 0;
}
.zernto-card-brand {
  display: grid;
  width: 34px;
  height: 22px;
  overflow: hidden;
  place-items: center;
  padding: 0 4px;
  border-radius: 6px;
  background: #fff;
  color: #261328;
  font-size: 8px;
  font-weight: 800;
  text-align: center;
  box-shadow: 0 0 0 1px rgba(38,19,40,.12);
}
.zernto-card-brand svg { display: block; width: 100%; height: 100%; }
body[data-page-type="product"] .zernto-payment-strip { display: none !important; }

/* Klarna is active in SHOPLINE Payments. This entry keeps the selected variant
   and quantity, then hands payment eligibility and collection to checkout. */
.zernto-klarna-checkout { width: 100%; }
.zernto-klarna-checkout__button {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  min-height: 50px;
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  background: #ffb3c7;
  color: #17120f;
  font: inherit;
  font-size: 14px;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(91,31,50,.12);
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}
.zernto-klarna-checkout__button:hover,
.zernto-klarna-checkout__button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 11px 26px rgba(91,31,50,.18);
}
.zernto-klarna-checkout__button:disabled { cursor: wait; opacity: .72; }
.zernto-klarna-checkout__brand {
  padding: 4px 7px;
  border-radius: 4px;
  background: #111;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: -.02em;
}
.zernto-klarna-checkout__button small {
  font-size: 10px;
  font-weight: 700;
  opacity: .72;
}

.zernto-other-checkout {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 0 0 4px;
  overflow: visible;
  text-align: center;
}
.zernto-other-checkout__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  appearance: none;
  width: auto;
  min-height: 0;
  padding: 3px 6px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #6f5264;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: underline;
  text-decoration-color: rgba(111,82,100,.4);
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color .18s ease, background .18s ease, opacity .18s ease;
}
.zernto-other-checkout__button:hover,
.zernto-other-checkout__button:focus-visible {
  background: rgba(111,82,100,.07);
  color: #2b1327;
}
.zernto-other-checkout__button:disabled { cursor: wait; opacity: .7; }
.zernto-other-checkout__button > span { white-space: nowrap; }
.zernto-other-checkout__button small {
  padding: 0;
  border: 0;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  opacity: .86;
}

/* The compact three-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(3,minmax(0,1fr)) !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translate(-50%,calc(100% + 28px)) !important;
  transition: opacity .2s ease, transform .24s ease, visibility 0s linear .24s !important;
}
.zernto-product-nav__icon {
  display: grid !important;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-inline: auto;
}
.zernto-product-nav__icon svg,
.zernto-product-nav__collapse svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
body[data-page-type="product"] nav.zernto-product-nav[data-zernto-product-nav] > button:not([data-nav-collapse]) {
  display: flex !important;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  margin: 0 !important;
  padding: 4px 8px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: #39263b !important;
  box-shadow: none !important;
  transition: color .18s ease, background .22s ease, box-shadow .22s ease, transform .18s ease !important;
}
body[data-page-type="product"] nav.zernto-product-nav[data-zernto-product-nav] > button:not([data-nav-collapse]).is-active {
  background: linear-gradient(135deg,#c94d2c 0%,#9d2f67 100%) !important;
  color: #fff !important;
  box-shadow: 0 7px 18px rgba(126,35,79,.2) !important;
}
body[data-page-type="product"] nav.zernto-product-nav[data-zernto-product-nav] > button:not([data-nav-collapse]):active {
  transform: scale(.98);
}
.zernto-product-nav__collapse { display: none !important; }
.zernto-product-nav.is-visible {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translate(-50%,0) !important;
  transition: opacity .2s ease, transform .24s ease !important;
}
.zernto-trust-card.is-static,
.zernto-trust-card.is-static:hover {
  cursor: default;
  border-color: rgba(239,125,50,.32);
  background: #fffaf4;
  transform: none;
  box-shadow: none;
}
product-item[hidden],
li[hidden]:has(> product-item) { display: none !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) {
  body[data-page-type="product"] theme-product-detail .product-detail__buy-button-group {
    position: static !important;
    inset: auto !important;
    z-index: auto !important;
    width: 100% !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  body[data-page-type="product"] .shopline-payment-button-wrapper[data-inject-rendered-buttons] {
    grid-template-columns: minmax(0,1fr) !important;
  }
  .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-card-checkout {
    padding: 0;
  }
  .zernto-card-checkout__button {
    flex-direction: column;
    gap: 6px;
    width: 100%;
    min-width: 0;
    min-height: 64px;
    padding: 7px 10px;
  }
  .zernto-card-checkout__brands {
    justify-content: center;
    flex-wrap: nowrap;
    gap: 3px;
  }
  .zernto-klarna-checkout__button {
    justify-content: center;
    gap: 8px;
    padding-inline: 14px;
    text-align: center;
  }
  .zernto-klarna-checkout__button small { display: none; }
  .zernto-card-brand {
    flex: 0 0 32px;
    width: 32px;
    max-width: 32px;
    height: 20px;
  }
  .zernto-other-checkout__button {
    min-height: 0;
    padding: 4px 7px;
    font-size: 10px;
  }
  .zernto-product-nav {
    bottom: calc(10px + env(safe-area-inset-bottom)) !important;
    width: calc(100vw - 16px) !important;
  }
  body[data-page-type="product"] nav.zernto-product-nav[data-zernto-product-nav] {
    box-sizing: border-box;
    grid-template-columns: repeat(3,minmax(0,1fr)) 44px !important;
  }
  .zernto-product-nav__collapse {
    display: grid !important;
    place-items: center;
    align-self: stretch;
    min-width: 44px;
    padding: 0 !important;
    border-left: 1px solid rgba(38,19,40,.12) !important;
    border-radius: 0 999px 999px 0 !important;
    color: #39263b;
  }
  .zernto-product-nav__collapse svg { transition: transform .2s ease; }
  body[data-page-type="product"] nav.zernto-product-nav[data-zernto-product-nav].is-collapsed {
    left: auto !important;
    right: 0 !important;
    bottom: calc(12px + env(safe-area-inset-bottom)) !important;
    width: 38px !important;
    height: 44px !important;
    grid-template-columns: 34px !important;
    padding: 3px 0 3px 3px !important;
    border-right: 0 !important;
    border-radius: 999px 0 0 999px !important;
    transform: none !important;
    box-shadow: 0 8px 24px rgba(42,18,39,.16) !important;
  }
  body[data-page-type="product"] nav.zernto-product-nav[data-zernto-product-nav].is-collapsed > button:not([data-nav-collapse]) {
    display: none !important;
  }
  body[data-page-type="product"] nav.zernto-product-nav[data-zernto-product-nav].is-collapsed .zernto-product-nav__collapse {
    width: 34px !important;
    min-width: 34px !important;
    height: 38px !important;
    min-height: 38px !important;
    border-left: 0 !important;
    border-radius: 999px 0 0 999px !important;
    background: #fffaf5 !important;
  }
  .zernto-product-nav.is-collapsed .zernto-product-nav__collapse svg { transform: rotate(180deg); }
  .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;
  }
}

@media (min-width: 750px) {
  body[data-page-type="product"] nav.zernto-product-nav[data-zernto-product-nav] {
    display: none !important;
  }
}

