/* 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[lang^="de"] .header-nav__menu {
    display: flex !important;
    flex-wrap: nowrap !important;
    column-gap: 10px !important;
  }
  html[lang^="de"] .header-nav__menu-item {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: max-content !important;
    margin-inline: 0 !important;
  }
  html[lang^="de"] .header-nav__underline,
  html[lang^="de"] .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[lang^="de"] .header-nav__ellipsis {
    font-size: 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: 1; }
body[data-page-type="product"] .shopline-payment-button-wrapper[data-inject-rendered-buttons] .pay-button-ApplePay:not(.pay-button-hide) { order: 1; }
body[data-page-type="product"] .shopline-payment-button-wrapper[data-inject-rendered-buttons] > .zernto-klarna-checkout {
  order: 2;
  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: 4;
  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: 3;
  grid-column: 1 / -1 !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: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 10px;
  margin: 12px 0 18px;
  padding: 13px 14px;
  border: 1px solid rgba(38,19,40,.1);
  border-radius: 16px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 8px 28px rgba(38,19,40,.06);
}
.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 {
  width: 100%;
  min-width: 0;
  min-height: 50px;
  padding: 12px 22px;
  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__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-wrap: nowrap;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.zernto-card-brand {
  display: grid;
  width: 46px;
  height: 30px;
  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: grid;
  grid-template-columns: auto auto minmax(0,1fr);
  align-items: center;
  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 {
  justify-self: end;
  font-size: 10px;
  font-weight: 700;
  opacity: .72;
}

/* 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;
  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.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;
}
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 {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px;
  }
  .zernto-card-checkout__button {
    width: 100%;
    min-width: 0;
    min-height: 50px;
    padding-inline: 18px;
  }
  .zernto-card-checkout__brands {
    grid-column: auto;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 4px;
  }
  .zernto-klarna-checkout__button {
    grid-template-columns: auto 1fr;
    gap: 8px;
    padding-inline: 14px;
    text-align: left;
  }
  .zernto-klarna-checkout__button small { display: none; }
  .zernto-card-brand {
    flex: 0 0 40px;
    width: 40px;
    max-width: 40px;
  }
  .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;
  }
}

