/* Provider artwork stays unmodified; only its surrounding layout is themed. */
body img.nv-payment-brand {
  display: block;
  width: auto;
  height: 28px;
  max-width: 96px;
  object-fit: contain;
  flex: 0 0 auto;
  border: 0;
  box-shadow: none;
}

.nv-pay__mark:has(.nv-payment-brand) {
  min-width: 88px;
  padding-inline: 10px;
}
.nv-pay__mark .nv-payment-brand { height: 24px; }

/* With two pay-later brands, show every mark instead of hiding the new ones
   beyond the mobile strip's swipe edge. Contain screen-reader labels too. */
.nv-pay__mark { position: relative; }
@media (max-width: 600px) {
  .nv-pay__list:has(.nv-payment-brand) {
    flex-wrap: wrap;
    overflow: visible;
    mask-image: none;
    -webkit-mask-image: none;
    animation: none;
  }
  .nv-pay__list:has(.nv-payment-brand) .nv-pay__mark {
    flex: 1 0 88px;
    min-width: 0;
    padding-inline: 8px;
  }
  .nv-pay__list:has(.nv-payment-brand) .nv-pay__mark--cod { flex-grow: 0; }
  .nv-pay__mark .nv-payment-brand { height: 22px; }
}

.nv-cart-payment-brands,
.nv-cart-payment-brands__logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.nv-cart-payment-brands {
  margin-top: 12px;
  color: var(--color-muted, #5b616f);
  font: 12px/1.5 "Inter", ui-sans-serif, system-ui, sans-serif;
}
.nv-cart-payment-brands .nv-payment-brand { height: 22px; }


/* Dedicated checkout selectors also override vendor inline image dimensions. */
body.checkout-wc #cfw .payment_method_label > div:has(.nv-checkout-marks) {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
}
body.checkout-wc #cfw .payment_method_icons:has(.nv-checkout-marks) {
  display: inline-flex !important;
  margin: 0 !important;
  flex: 0 0 auto;
  max-width: 100%;
  height: auto !important;
  max-height: none !important;
}
body.checkout-wc #cfw .payment_method_icons .nv-amex-logo {
  display: block !important;
  width: 28px !important;
  height: 28px !important;
  min-width: 0 !important;
  max-width: 28px !important;
  max-height: 28px !important;
  margin: 0 !important;
  object-fit: contain;
  float: none !important;
}
.nv-checkout-marks {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  position: relative;
}
.nv-checkout-overflow[hidden] { display: none; }
.nv-checkout-overflow {
  position: relative;
  display: inline-flex;
  flex: 0 0 42px;
  height: 30px;
  isolation: isolate;
}
.nv-checkout-overflow > span,
.nv-checkout-overflow::before,
.nv-checkout-overflow::after {
  width: 36px;
  height: 30px;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .1);
}
.nv-checkout-overflow > span {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #5b616f;
  font: 600 12px/1 "Inter", sans-serif;
  font-variant-numeric: tabular-nums;
}
.nv-checkout-overflow::before,
.nv-checkout-overflow::after {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  background: #f9f4ef;
}
.nv-checkout-overflow::before { transform: translate(5px, -3px) rotate(5deg); }
.nv-checkout-overflow::after { transform: translate(2px, -1px) rotate(2deg); }
.nv-checkout-mark--overflowed {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-width: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.nv-checkout-mark,
.nv-checkout-mark > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.nv-checkout-mark {
  height: 30px;
  min-width: 42px;
  padding: 3px 6px;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .08);
  color: #1e293b;
  line-height: 1;
}
.nv-checkout-mark--tabby { padding: 0; min-width: 0; background: transparent; box-shadow: none; }
.nv-checkout-mark .nv-pay__svg { display: block; height: 20px; width: auto; max-width: 32px; }
.nv-checkout-mark .nv-pay__svg--apple { height: 18px; }
.nv-checkout-mark .nv-pay__svg--google { height: 17px; }
.nv-checkout-mark .nv-pay__suffix { margin-left: 3px; font: 600 13px/1 "Inter", sans-serif; }
.nv-checkout-mark .nv-pay__wordmark--visa { color: #1434cb; font: italic 800 14px/1 "Inter", sans-serif; letter-spacing: .02em; }
@media (max-width: 600px) {
  body.checkout-wc #cfw .payment_method_icons:has(.nv-checkout-marks--multiple),
  .nv-checkout-marks--multiple { width: 100%; }
  .nv-checkout-marks--compact { flex-wrap: nowrap; }
  .nv-checkout-marks--compact .nv-checkout-mark { flex-shrink: 0; }
  body.checkout-wc #cfw .payment_method_label > div:has(.nv-checkout-marks--multiple) {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
body.checkout-wc #cfw .payment_method_label > div:has(.nv-payment-brand) {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}
body.checkout-wc #cfw .payment_method_label:has(.nv-payment-brand) .payment_method_title {
  min-width: 0;
  flex: 1 1 auto;
}
body.checkout-wc #cfw .payment_method_icons:has(.nv-payment-brand) {
  display: inline-flex !important;
  align-items: center;
  flex: 0 0 auto;
  margin: 0 !important;
}
body.checkout-wc #cfw .payment_method_icons .nv-payment-brand {
  display: block !important;
  width: auto !important;
  height: 26px !important;
  max-height: 28px !important;
  max-width: 86px !important;
  margin: 0 !important;
  float: none !important;
}
body.checkout-wc #cfw tamara-widget {
  --font-primary: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-secondary: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-size-base: 14px;
}
@media (max-width: 380px) {
  body.checkout-wc #cfw .payment_method_label > div:has(.nv-payment-brand) { gap: 8px; }
  body.checkout-wc #cfw .payment_method_icons .nv-payment-brand { height: 22px !important; }
}
@media (max-width: 600px) {
  body.checkout-wc #cfw .payment_method_label > div:has(.nv-checkout-marks--multiple) {
    align-items: flex-start;
  }
}
