/* === NTS Payment Icons v3 =============================== */

li.wc_payment_method {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 0 !important;
}

li.wc_payment_method > input[type="radio"] {
  flex-shrink: 0;
  margin-right: 6px;
  align-self: center;
}

li.wc_payment_method > label {
  flex: 0 0 auto !important;
  display: inline-flex !important;
  align-items: center !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: unset !important;
  max-width: none !important;
}

li.wc_payment_method .payment_box {
  flex: 0 0 100% !important;
  width: 100% !important;
}

.nts-pay-icons {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px;
  margin-left: 8px;
  vertical-align: middle;
  flex-shrink: 0;
  line-height: 1;
}

.nts-pay-icon {
  display: inline-flex !important;
  align-items: center;
  flex-shrink: 0;
}

.nts-pay-icon svg {
  display: block !important;
  max-width: none !important;
  max-height: none !important;
  flex-shrink: 0;
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.10);
  overflow: visible;
}

/* ── PAYMENT ICONS MOBILE ────────────────── */

@media (max-width: 600px) {
  .nts-pay-icons {
    margin-left: 5px;
    gap: 4px;
  }

  li.wc_payment_method > label {
    display: flex !important;
    align-items: flex-start !important;
    flex-wrap: wrap !important;
    line-height: 1.25 !important;
    width: calc(100% - 38px) !important;
  }

  label[for="payment_method_fkwcs_stripe"] .nts-pay-icons {
    display: flex !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-top: 8px !important;
    gap: 4px !important;
    flex-wrap: nowrap !important;
  }

  label[for="payment_method_fkwcs_stripe"] .nts-pay-icon svg {
    width: 39px !important;
    height: 25px !important;
  }

  label[for="payment_method_bacs"] .nts-pay-icons {
    margin-left: 8px !important;
    margin-top: 0 !important;
    width: auto !important;
  }

  label[for="payment_method_bacs"] .nts-pay-icon svg {
    width: 44px !important;
    height: 28px !important;
  }
}

/* ── MOBILE HEADER ───────────────────────── */

@media (max-width: 767px) {

  #nts-header,
  .nts-header {
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
  }

  .nts-header__inner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    padding: 14px 18px !important;
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
  }

  /* Show nav with Home and Catalog only */
  .nts-header__nav {
    display: flex !important;
    align-items: center !important;
    gap: 18px !important;
    flex-wrap: nowrap !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  .nts-header__nav-link {
    font-size: 13px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    line-height: 1 !important;
  }

  /* Hide everything except Home and Catalog */
  .nts-header__nav-link[href*="auto-reorder"],
  .nts-header__nav-link[href*="research"],
  .nts-header__nav-link[href*="about-us"],
  .nts-header__nav-link[href*="contact"] {
    display: none !important;
  }

  /* Hide Sign In and Order Now */
  .nts-header__signin,
  .nts-header__cta {
    display: none !important;
  }

  /* Cart — clean badge */
  .nts-header__cart {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
  }

  .nts-header__cart svg {
    width: 26px !important;
    height: 26px !important;
  }

  /* Cart count — correct class from DOM inspection */
  .nts-cart-count {
    position: absolute !important;
    top: -3px !important;
    right: -3px !important;
    min-width: 16px !important;
    height: 16px !important;
    border-radius: 999px !important;
    font-size: 10px !important;
    line-height: 16px !important;
    text-align: center !important;
    font-weight: 700 !important;
    padding: 0 3px !important;
  }

  /* Hamburger */
  .nts-header__hamburger {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
  }

  /* Prevent mobile menu from causing scroll */
  #nts-mobile-menu {
    max-width: 100vw !important;
    overflow: hidden !important;
  }
}