/* Cross-page corrections verified in the 2026-07 shop audit. */
body.melsom-redesign-active .footer-bottom .pay > span:nth-child(-n+3):not(.pay-logo) {
  display: none !important;
}

body.melsom-redesign-active .footer-bottom .pay > span:nth-child(4):not(.pay-logo) {
  display: inline-flex !important;
  min-width: 190px;
  background: #fff;
}

body.melsom-redesign-active .footer-bottom .pay > span:nth-child(4):not(.pay-logo)::before {
  content: "Rechnung für freigegebene Händler" !important;
  color: #111820;
  font-size: 10.5px;
  font-weight: 900;
}

body.melsom-redesign-active .footer-bottom .pay > span:nth-child(4):not(.pay-logo)::after {
  content: none !important;
}

body.melsom-redesign-active .melsom-side-cart-item__title {
  -webkit-line-clamp: 3;
}

body.melsom-redesign-active .melsom-side-cart.is-updating .melsom-side-cart__actions {
  pointer-events: none;
  opacity: 0.55;
}

body.melsom-redesign-active .melsom-registration-privacy {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  background: #f7f8fa;
}

body.melsom-redesign-active .melsom-registration-privacy label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.45;
}

/* Saved cart account view: compact B2B workspace header. */
body.melsom-redesign-active .homelux-account-bestelllisten__head {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 24px !important;
  padding: 0 0 22px !important;
  border-bottom: 1px solid var(--line, #e8eaed);
}

body.melsom-redesign-active .homelux-account-bestelllisten__head > div {
  min-width: 0;
}

body.melsom-redesign-active .homelux-account-bestelllisten__head span {
  display: block;
  color: var(--muted, #6b7280) !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  letter-spacing: .06em !important;
  line-height: 1.2 !important;
  text-transform: uppercase;
}

body.melsom-redesign-active .homelux-account-bestelllisten__head h2,
body.melsom-redesign-active.elementor-kit-5.woocommerce-account .woocommerce .homelux-account-bestelllisten__head h2 {
  max-width: none !important;
  margin: 5px 0 0 !important;
  color: var(--ink, #15181c) !important;
  font-size: clamp(26px, 2.2vw, 32px) !important;
  font-weight: 950 !important;
  letter-spacing: 0 !important;
  line-height: 1.08 !important;
}

body.melsom-redesign-active .homelux-account-bestelllisten__shop,
body.melsom-redesign-active.elementor-kit-5.woocommerce-account .woocommerce .homelux-account-bestelllisten__shop {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 184px !important;
  min-height: 48px !important;
  padding: 0 22px !important;
  border: 1px solid var(--red, #e01414) !important;
  border-radius: 8px !important;
  background: var(--red, #e01414) !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  text-align: center !important;
  white-space: nowrap !important;
}

body.melsom-redesign-active .homelux-account-bestelllisten__shop:hover,
body.melsom-redesign-active .homelux-account-bestelllisten__shop:focus-visible {
  border-color: var(--red-dark, #b30f0f) !important;
  background: var(--red-dark, #b30f0f) !important;
  color: #fff !important;
}

@media (max-width: 720px) {
  body.melsom-redesign-active .woocommerce-MyAccount-content,
  body.melsom-redesign-active .woocommerce-MyAccount-content-wrapper-no-data,
  body.melsom-redesign-active .homelux-account-bestelllisten,
  body.melsom-redesign-active .homelux-account-bestelllisten > * {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  body.melsom-redesign-active .woocommerce-MyAccount-content {
    overflow-x: hidden !important;
  }

  body.melsom-redesign-active .homelux-account-bestelllisten__head {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px !important;
  }

  body.melsom-redesign-active .homelux-account-bestelllisten__current,
  body.melsom-redesign-active.elementor-kit-5.woocommerce-account .woocommerce .homelux-account-bestelllisten__current,
  body.melsom-redesign-active .homelux-account-bestelllisten__item {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.melsom-redesign-active .homelux-account-bestelllisten__current,
  body.melsom-redesign-active .homelux-account-bestelllisten__item {
    padding: 18px !important;
  }

  body.melsom-redesign-active .homelux-account-bestelllisten__current > *,
  body.melsom-redesign-active .homelux-account-bestelllisten__item > *,
  body.melsom-redesign-active .homelux-save-cart__wrapper {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  body.melsom-redesign-active .homelux-save-cart__wrapper {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.melsom-redesign-active .homelux-save-cart__button,
  body.melsom-redesign-active .woocommerce .homelux-save-cart__button,
  body.melsom-redesign-active .homelux-account-bestelllisten__item a,
  body.melsom-redesign-active .homelux-account-bestelllisten__item button {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    padding-inline: 14px !important;
    line-height: 1.2 !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
  }

  body.melsom-redesign-active .homelux-account-bestelllisten h2,
  body.melsom-redesign-active .homelux-account-bestelllisten h3,
  body.melsom-redesign-active .homelux-account-bestelllisten p {
    overflow-wrap: anywhere;
  }

  body.melsom-redesign-active .homelux-account-bestelllisten__shop,
  body.melsom-redesign-active.elementor-kit-5.woocommerce-account .woocommerce .homelux-account-bestelllisten__shop {
    width: 100% !important;
    min-width: 0 !important;
  }
}
