/**
 * InFront — cart / order totals (cart page, side drawer, shared receipt styling)
 */

:root {
  --ift-totals-ink: #0f172a;
  --ift-totals-muted: #64748b;
  --ift-totals-line: #e2e8f0;
  --ift-totals-soft: #f8fafc;
  --ift-totals-brand: #0ea5e9;
  --ift-totals-brand-2: #10b981;
  --ift-totals-brand-dark: #0f766e;
  --ift-totals-radius: 16px;
  --ift-totals-font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* ------------------------------------------------------------------ */
/* Cart page — totals card shell                                      */
/* ------------------------------------------------------------------ */

body#cart .ift-cart-totals-card.infront-cart-summary.card.cart-summary {
  border: 1px solid #dbe3ec;
  border-radius: var(--ift-totals-radius);
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
  overflow: hidden;
  margin-bottom: 1rem;
  font-family: var(--ift-totals-font);
}

body#cart .ift-cart-totals-card .card-body,
body#cart .ift-cart-totals-card .infront-cart-summary__body {
  padding: 0;
  background: transparent;
  border: 0;
}

body#cart .ift-cart-totals__header.infront-cart-summary__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--ift-totals-line);
  background: #fff;
}

body#cart .ift-cart-totals__header .infront-cart-summary__header-main {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

body#cart .ift-cart-totals__header .infront-cart-summary__icon {
  flex: 0 0 2.5rem;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--ift-totals-brand) 0%, var(--ift-totals-brand-2) 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.2);
}

body#cart .ift-cart-totals__header .infront-cart-summary__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ift-totals-ink);
  line-height: 1.25;
}

body#cart .ift-cart-totals__header .infront-cart-summary__subtitle {
  margin: 0.15rem 0 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ift-totals-muted);
}

body#cart .ift-cart-totals-card hr,
body#cart .ift-cart-totals hr {
  display: none;
}

/* ------------------------------------------------------------------ */
/* Amounts — receipt-style lines (cart page + drawer)                 */
/* ------------------------------------------------------------------ */

body#cart .ift-cart-totals.infront-cart-summary__amounts,
#blockcart-content .ift-cart-totals.infront-cart-summary__amounts {
  border-top: 0;
  background: var(--ift-totals-soft);
}

body#cart .ift-cart-totals .infront-cart-summary__amounts-body,
#blockcart-content .ift-cart-totals .infront-cart-summary__amounts-body {
  padding: 0.35rem 0 0;
}

body#cart .ift-cart-totals .infront-amount,
#blockcart-content .ift-cart-totals .infront-amount {
  display: inline-block;
  font-family: inherit;
  font-feature-settings: "tnum" 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  white-space: nowrap;
  text-align: right;
}

body#cart .ift-cart-totals .infront-amount--sub,
#blockcart-content .ift-cart-totals .infront-amount--sub {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ift-totals-ink);
}

body#cart .ift-cart-totals .infront-amount--discount,
#blockcart-content .ift-cart-totals .infront-amount--discount {
  color: #059669 !important;
  font-weight: 700;
}

body#cart .ift-cart-totals .infront-amount--tax,
#blockcart-content .ift-cart-totals .infront-amount--tax {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ift-totals-muted);
}

body#cart .ift-cart-totals .infront-amount--total,
#blockcart-content .ift-cart-totals .infront-amount--total {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ift-totals-ink);
  letter-spacing: -0.05em;
  line-height: 1;
}

body#cart .ift-cart-totals .infront-cart-summary-subtotals,
body#cart .ift-cart-totals .cart-detailed-subtotals,
#blockcart-content .ift-cart-totals .infront-cart-summary-subtotals,
#blockcart-content .ift-cart-totals .cart-subtotals {
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
}

body#cart .ift-cart-totals .infront-cart-summary-line,
body#cart .ift-cart-totals .cart-summary-line,
#blockcart-content .ift-cart-totals .infront-cart-summary-line,
#blockcart-content .ift-cart-totals .cart-summary-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.35rem 1rem;
  padding: 0.45rem 1.2rem;
  font-size: 0.8125rem;
}

body#cart .ift-cart-totals .cart-summary-line .label,
#blockcart-content .ift-cart-totals .cart-summary-line .label {
  color: var(--ift-totals-muted);
  font-weight: 600;
  line-height: 1.35;
}

body#cart .ift-cart-totals .cart-summary-line .value,
#blockcart-content .ift-cart-totals .cart-summary-line .value {
  justify-self: end;
}

body#cart .ift-cart-totals__shipping-detail,
#blockcart-content .ift-cart-totals__shipping-detail {
  grid-column: 1 / -1;
  margin-top: -0.15rem;
  padding-bottom: 0.15rem;
}

body#cart .ift-cart-totals__shipping-detail small,
#blockcart-content .ift-cart-totals__shipping-detail small {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #94a3b8;
  line-height: 1.35;
}

body#cart .ift-cart-totals .infront-cart-summary-totals,
body#cart .ift-cart-totals .cart-summary-totals,
#blockcart-content .ift-cart-totals .infront-cart-summary-totals,
#blockcart-content .ift-cart-totals .cart-totals {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

body#cart .ift-cart-totals .infront-cart-summary-totals__pay,
#blockcart-content .ift-cart-totals .infront-cart-summary-totals__pay {
  padding: 0;
  background: transparent;
  border: 0;
}

body#cart .ift-cart-totals .infront-cart-summary-line--total,
#blockcart-content .ift-cart-totals .infront-cart-summary-line--total {
  margin-top: 0.35rem;
  padding: 0.85rem 1.2rem 0.75rem;
  background: #fff;
  border-top: 2px solid var(--ift-totals-ink);
  box-shadow: 0 -8px 20px rgba(15, 23, 42, 0.04);
}

body#cart .ift-cart-totals .infront-cart-summary-line--pretotal,
#blockcart-content .ift-cart-totals .infront-cart-summary-line--pretotal {
  padding-bottom: 0.25rem;
}

body#cart .ift-cart-totals .infront-cart-summary-line__title,
#blockcart-content .ift-cart-totals .infront-cart-summary-line__title {
  display: block;
  font-size: 0.9375rem;
  font-weight: 800;
  color: var(--ift-totals-ink);
  line-height: 1.25;
}

body#cart .ift-cart-totals .infront-cart-summary-line__hint,
#blockcart-content .ift-cart-totals .infront-cart-summary-line__hint {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ift-totals-muted);
}

body#cart .ift-cart-totals .infront-cart-summary-line--tax,
#blockcart-content .ift-cart-totals .infront-cart-summary-line--tax {
  padding-top: 0.35rem;
  padding-bottom: 0.65rem;
}

body#cart .ift-cart-totals .infront-cart-summary-line--tax .label,
body#cart .ift-cart-totals .infront-cart-summary-line--tax .value,
#blockcart-content .ift-cart-totals .infront-cart-summary-line--tax .label,
#blockcart-content .ift-cart-totals .infront-cart-summary-line--tax .value {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ift-totals-muted);
}

/* Module hooks — free shipping, alerts, etc. */
body#cart .ift-cart-totals .infront-cart-summary-totals__extras,
#blockcart-content .ift-cart-totals .infront-cart-summary-totals__extras {
  padding: 0;
}

body#cart .ift-cart-totals .infront-cart-summary-totals__extras .alert,
body#cart .ift-cart-totals .infront-cart-summary-totals__extras .iqitfreedeliverycount,
#blockcart-content .ift-cart-totals .infront-cart-summary-totals__extras .alert,
#blockcart-content .ift-cart-totals .infront-cart-summary-totals__extras .iqitfreedeliverycount {
  margin: 0;
  padding: 0.75rem 1.2rem;
  border: 0;
  border-radius: 0;
  background: #fffbeb;
  border-top: 1px solid #fde68a !important;
  color: #92400e;
  font-size: 0.8125rem;
  line-height: 1.45;
}

body#cart .ift-cart-totals .infront-cart-summary-totals__extras .iqitfreedeliverycount-title,
#blockcart-content .ift-cart-totals .infront-cart-summary-totals__extras .iqitfreedeliverycount-title {
  font-size: 0.8125rem;
  margin-bottom: 0.25rem;
  font-weight: 700;
}

body#cart .ift-cart-totals .infront-cart-summary-totals__extras .iqitfreedeliverycount p,
#blockcart-content .ift-cart-totals .infront-cart-summary-totals__extras .iqitfreedeliverycount p {
  margin: 0;
  font-size: 0.75rem;
  color: #b45309;
}

/* ------------------------------------------------------------------ */
/* Promo / voucher — cart page                                        */
/* ------------------------------------------------------------------ */

body#cart .ift-cart-totals-card .infront-cart-summary-voucher {
  margin: 0;
  padding: 0.85rem 1.2rem;
  border-top: 0;
  border-bottom: 1px solid var(--ift-totals-line);
  background: #fff;
}

body#cart .ift-cart-totals-card .infront-cart-summary-voucher .cart-voucher-area::before {
  display: block;
  margin: 0 0 0.55rem;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ift-totals-muted);
  content: "Promo code";
}

body#cart .ift-cart-totals-card .cart-voucher .promo-name {
  padding: 0;
  margin: 0 0 0.55rem;
}

body#cart .ift-cart-totals-card .cart-voucher .promo-name .cart-summary-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0.65rem;
  border-radius: 10px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  font-size: 0.8125rem;
}

body#cart .ift-cart-totals-card .cart-voucher .promo-name a {
  color: #b91c1c;
  margin-right: 0.35rem;
}

body#cart .ift-cart-totals-card .cart-voucher .input-group {
  display: flex;
  align-items: stretch;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  overflow: hidden;
  background: var(--ift-totals-soft);
}

body#cart .ift-cart-totals-card .cart-voucher .voucher-icon {
  display: none;
}

body#cart .ift-cart-totals-card .cart-voucher .form-control {
  flex: 1;
  min-height: 2.45rem;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  font-size: 0.875rem;
  padding-left: 0.85rem;
}

body#cart .ift-cart-totals-card .cart-voucher .form-control:focus {
  box-shadow: none;
  background: #fff;
}

body#cart .ift-cart-totals-card .cart-voucher .btn-secondary {
  flex: 0 0 auto;
  border: 0;
  border-left: 1px solid var(--ift-totals-line);
  border-radius: 0;
  background: var(--ift-totals-brand-dark);
  color: #fff;
  font-weight: 700;
  font-size: 0.8125rem;
  padding: 0 1rem;
}

body#cart .ift-cart-totals-card .cart-voucher .btn-secondary:hover {
  background: var(--ift-totals-brand);
  color: #fff;
}

body#cart .ift-cart-totals-card .cart-voucher .promo-name.card-body {
  padding: 0;
  background: transparent;
  border: 0;
}

body#cart .ift-cart-totals-card .cart-voucher .promo-name .pull-right {
  float: none;
  margin-left: auto;
  font-weight: 700;
  color: #047857;
}

body#cart .ift-cart-totals-card .cart-voucher .js-error {
  display: none;
  margin-bottom: 0.5rem;
  border-radius: 8px;
  font-size: 0.8125rem;
}

body#cart .ift-cart-totals-card .cart-voucher .js-error:has(.js-error-text:not(:empty)) {
  display: block;
}

body#cart .ift-cart-totals-card .promo-highlighted {
  margin: 0.65rem 0 0.35rem;
  font-size: 0.75rem;
  color: var(--ift-totals-muted) !important;
}

body#cart .ift-cart-totals-card .promo-discounts {
  list-style: none;
  margin: 0;
  padding: 0;
}

body#cart .ift-cart-totals-card .promo-discounts .cart-summary-line {
  padding: 0.4rem 0.55rem;
  margin-bottom: 0.3rem;
  border-radius: 8px;
  background: var(--ift-totals-soft);
  font-size: 0.75rem;
}

body#cart .ift-cart-totals-card .promo-discounts .code {
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  background: #fff;
  border: 1px dashed #94a3b8;
  font-weight: 800;
  font-size: 0.6875rem;
  color: var(--ift-totals-brand-dark);
}

/* ------------------------------------------------------------------ */
/* Payment reassurance note                                           */
/* ------------------------------------------------------------------ */

body#cart .ift-cart-totals__note {
  padding: 0.85rem 1.2rem 0.65rem;
  border-top: 1px solid var(--ift-totals-line);
  background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
  text-align: center;
}

body#cart .ift-cart-totals__note p {
  margin: 0;
  line-height: 1.45;
}

body#cart .ift-cart-totals__note-text {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ift-totals-muted);
  line-height: 1.5;
}

body#cart .ift-cart-totals__note-highlight {
  display: inline-block;
  margin: 0 0.2rem 0.35rem 0;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #0f766e 0%, #0ea5e9 100%);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.25);
  vertical-align: middle;
}

body#cart .ift-cart-totals__note-value {
  display: inline-block;
  margin: 0 0.1rem;
  padding: 0.1rem 0.4rem;
  border-radius: 6px;
  background: #fff7ed;
  border: 1px solid #fdba74;
  color: #c2410c;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

body#cart .ift-cart-totals__note-cta {
  margin-top: 0.35rem !important;
  font-size: 0.8125rem;
  font-weight: 800;
  color: var(--ift-totals-ink);
}

body#cart .ift-cart-totals__note-or {
  margin: 0.45rem 0 !important;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f97316;
}

body#cart .ift-cart-totals__note-express {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ift-totals-muted);
}

/* ------------------------------------------------------------------ */
/* Actions — proceed + express payment modules                        */
/* ------------------------------------------------------------------ */

body#cart .ift-cart-totals__actions {
  padding: 1rem 1.2rem 1.15rem;
  border-top: 1px solid var(--ift-totals-line);
  background: #fff;
}

body#cart .ift-cart-totals__actions.card-body {
  padding: 1rem 1.2rem 1.15rem;
}

body#cart .ift-cart-totals__alert {
  margin-bottom: 0.75rem;
  border-radius: 10px;
  font-size: 0.8125rem;
}

body#cart .ift-cart-totals__checkout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--ift-totals-brand-dark) 0%, var(--ift-totals-brand) 55%, var(--ift-totals-brand-2) 100%);
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.28);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff !important;
  text-decoration: none !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

body#cart .ift-cart-totals__checkout-btn:hover,
body#cart .ift-cart-totals__checkout-btn:focus {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(14, 165, 233, 0.34);
  filter: brightness(1.03);
  color: #fff !important;
}

body#cart .ift-cart-totals__checkout-btn.disabled,
body#cart .ift-cart-totals__checkout-btn:disabled {
  opacity: 0.55;
  transform: none;
  box-shadow: none;
  filter: none;
}

body#cart .ift-cart-totals__payments.ift-cart-pay-stack {
  margin-top: 0.85rem;
  padding-top: 0;
  border-top: 0;
}

body#cart .ift-cart-totals__payments.ift-cart-pay-stack::before {
  display: none;
}

body#cart .ift-cart-pay-stack {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

body#cart .ift-cart-pay-stack:empty,
body#cart .ift-cart-pay-stack:not(:has(.ift-cart-pay-item--paypal, [data-container-express-checkout]:not([data-container-bnpl]))) {
  display: none;
}

/* PayPal — action button cards */
body#cart .ift-cart-pay-item--paypal,
body#cart .ift-cart-pay-item--paypal-bnpl {
  order: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0;
  padding: 0.7rem 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

body#cart .ift-cart-pay-item--paypal-bnpl {
  order: 2;
}

body#cart .ift-cart-pay-item__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0;
}

body#cart .ift-cart-pay-item__brand {
  display: inline-flex;
  align-items: center;
  min-height: 1.35rem;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1;
}

body#cart .ift-cart-pay-item__brand--paypal {
  background: #003087;
  color: #ffc439;
}

body#cart .ift-cart-pay-item__hint {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--ift-totals-muted);
  text-align: right;
  line-height: 1.3;
}

body#cart .ift-cart-pay-item__form {
  display: none;
}

body#cart .ift-cart-pay-item__button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.75rem;
}

/* PayPal buttons — full width */
body#cart .ift-cart-pay-item--paypal [paypal-button-container],
body#cart .ift-cart-pay-item--paypal-bnpl [paypal-bnpl-button-container],
body#cart .ift-cart-pay-item [data-container-express-checkout],
body#cart .ift-cart-pay-item [data-container-bnpl] {
  width: 100% !important;
  max-width: 100%;
  margin: 0 !important;
  display: flex !important;
  justify-content: center !important;
  float: none !important;
}

body#cart .ift-cart-pay-item .paypal-buttons,
body#cart .ift-cart-pay-item .paypal-buttons-context-iframe,
body#cart .ift-cart-pay-item iframe {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

body#cart .ift-cart-pay-item .paypal-buttons > iframe {
  border-radius: 10px;
}

/* PayPal installment banner — only if left in express stack by mistake */
body#cart .ift-cart-pay-stack .pp-message,
body#cart .ift-cart-pay-stack [data-pp-message],
body#cart .ift-cart-pay-stack [paypal-messaging-banner],
body#cart .ift-cart-pay-stack .paypal-banner,
body#cart .ift-cart-pay-stack .express-checkout-block {
  display: none !important;
}

/* ------------------------------------------------------------------ */
/* Buy now, pay later — custom Afterpay + Zip cards                   */
/* ------------------------------------------------------------------ */

body#cart .ift-cart-finance {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--ift-totals-line);
}

body#cart .ift-cart-finance__header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

body#cart .ift-cart-finance__icon {
  flex: 0 0 1.75rem;
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: linear-gradient(135deg, #0f766e 0%, #0ea5e9 100%);
  color: #fff;
}

body#cart .ift-cart-finance__title {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ift-totals-ink);
}

body#cart .ift-cart-finance__cards {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

body#cart .ift-cart-finance__pay4-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

body#cart .ift-cart-finance-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.35rem;
  min-height: 7.25rem;
  padding: 0.75rem 0.7rem;
  border-radius: 12px;
  border: 1px solid transparent;
  text-align: left;
}

body#cart .ift-cart-finance-card--afterpay {
  background: linear-gradient(160deg, #b2fce4 0%, #86efca 100%);
  border-color: #6ee7b7;
  color: #052e16;
}

body#cart .ift-cart-finance-card--paypal-bnpl {
  background: #fff;
  border-color: #e2e8f0;
  color: var(--ift-totals-ink);
}

body#cart .ift-cart-finance-card--zip {
  padding: 0.75rem 0.7rem;
  background: linear-gradient(160deg, #f5f3ff 0%, #ede9fe 100%);
  border-color: #c4b5fd;
  color: #1e1b4b;
}

body#cart .ift-cart-finance-card__copy--zip {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1 1 auto;
}

body#cart .ift-cart-finance-card__copy--zip .ift-cart-finance-card__lead {
  margin: 0;
  color: #4c1d95;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.35;
  opacity: 1;
}

body#cart .ift-cart-finance-card__copy--zip .ift-cart-finance-card__amount {
  margin: 0;
  color: #1e1b4b;
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

body#cart .ift-cart-finance-card__copy--zip .ift-cart-finance-card__note {
  margin: 0;
  color: #5b21b6;
  font-size: 0.625rem;
  font-weight: 600;
  line-height: 1.4;
  opacity: 0.85;
}

body#cart .ift-cart-finance-card__zip-action {
  margin-top: 0.45rem;
}

body#cart .ift-cart-finance-card__zip-btn {
  display: block;
  width: 100%;
  padding: 0.65rem 1rem;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(180deg, #2d0452 0%, #1d092c 100%);
  box-shadow: 0 2px 8px rgba(29, 9, 44, 0.25);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
  text-align: center;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.15s ease;
}

body#cart .ift-cart-finance-card__zip-btn:hover,
body#cart .ift-cart-finance-card__zip-btn:focus-visible {
  filter: brightness(1.08);
  outline: none;
}

body#cart .ift-cart-finance-card__zip-btn:active {
  transform: translateY(1px);
}

body#cart .widget-tagline,
body#cart .widget-tagline-cart,
body#cart [data-zm-widget="tagline"] {
  display: none !important;
}

body#cart .ift-cart-finance-card__zip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

body#cart .ift-cart-finance-card__zip-head .ift-cart-finance-card__lead {
  margin: 0;
  text-align: right;
}

body#cart .ift-cart-finance-card__widget-host {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

body#cart .ift-cart-finance-card--paypal-bnpl .ift-cart-pay-item--paypal-bnpl {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

body#cart .ift-cart-finance-card__message {
  flex: 1 1 auto;
  min-height: 2.75rem;
  display: flex;
  align-items: center;
}

body#cart .ift-cart-finance-card--paypal-bnpl .js-ift-paypal-bnpl-message {
  width: 100%;
}

body#cart .ift-cart-finance-card__overlimit {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ift-totals-muted);
}

body#cart .ift-cart-finance-card--paypal-bnpl-overlimit .js-ift-paypal-bnpl-host,
body#cart .ift-cart-finance-card--paypal-bnpl-overlimit [paypal-bnpl-button-container],
body#cart .ift-cart-finance-card--paypal-bnpl-overlimit .ift-cart-pay-item--paypal-bnpl {
  display: none !important;
}

body#cart .ift-cart-finance-card--paypal-bnpl-overlimit [data-pp-message],
body#cart .ift-cart-finance-card--paypal-bnpl-overlimit [paypal-messaging-banner] {
  display: none !important;
}

body#cart .ift-cart-finance-card--paypal-bnpl-overlimit .js-ift-paypal-bnpl-overlimit {
  display: block;
}

body#cart .ift-cart-finance-card--paypal-bnpl [paypal-messaging-banner],
body#cart .ift-cart-finance-card--paypal-bnpl [data-pp-message] {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 0.6875rem !important;
  line-height: 1.45 !important;
  color: var(--ift-totals-muted) !important;
}

body#cart .ift-cart-finance-card--paypal-bnpl [data-pp-message] a {
  color: #0070ba !important;
  font-weight: 700;
  text-decoration: none !important;
}

body#cart .ift-cart-finance-card--paypal-bnpl [data-pp-message] a:hover {
  text-decoration: underline !important;
}

body#cart .ift-cart-finance-card--paypal-bnpl .ift-cart-pay-item__button,
body#cart .ift-cart-finance-card--paypal-bnpl [paypal-bnpl-button-container] {
  width: 100% !important;
  min-height: 2.75rem;
  margin: 0 !important;
}

body#cart .ift-cart-finance-card--zip [data-zm-asset="cartwidget"],
body#cart .ift-cart-finance-card--zip [data-zm-widget] {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  float: none !important;
  display: block !important;
  line-height: 0;
}

body#cart .ift-cart-finance-card--zip .ift-cart-finance-card__widget-tray:not(.ift-cart-finance-card__widget-tray--zip) iframe {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 44px !important;
  height: 44px !important;
  margin: 0 auto !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: transparent !important;
}

body#cart .ift-cart-finance-card__logo--paypal {
  color: #003087;
  font-style: normal;
  text-transform: none;
  font-size: 1rem;
}

body#cart .ift-cart-finance-card__brand {
  margin-bottom: 0.15rem;
}

body#cart .ift-cart-finance-card__logo {
  display: inline-block;
  font-size: 1.125rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  text-transform: lowercase;
}

body#cart .ift-cart-finance-card__logo--afterpay {
  display: block;
  width: auto;
  max-width: 7.5rem;
  height: 1.25rem;
  object-fit: contain;
  object-position: left center;
}

body#cart .ift-cart-finance-card__logo--zip {
  display: block;
  width: auto;
  max-width: 4.75rem;
  height: 1.35rem;
  object-fit: contain;
  object-position: left center;
}

body#cart .ift-cart-finance-card__lead {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.35;
  opacity: 0.9;
}

body#cart .ift-cart-finance-card__amount {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: inherit;
}

body#cart .ift-cart-finance-card__note {
  margin: auto 0 0;
  font-size: 0.625rem;
  font-weight: 600;
  line-height: 1.35;
  opacity: 0.75;
}

body#cart .ift-cart-finance-card__cta {
  display: none;
}

body#cart .ift-cart-finance__native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 420px) {
  body#cart .ift-cart-finance__pay4-row {
    grid-template-columns: 1fr;
  }

  body#cart .ift-cart-finance-card {
    min-height: auto;
  }
}

/* ------------------------------------------------------------------ */
/* Side cart drawer                                                   */
/* ------------------------------------------------------------------ */

#blockcart-content .ift-cart-totals--drawer {
  margin: 0;
  border-top: 1px solid var(--ift-totals-line);
}

#blockcart-content .ift-cart-totals--drawer .infront-amount--total {
  font-size: 1.25rem;
}

#blockcart-content .ift-cart-totals--drawer .infront-cart-summary-line,
#blockcart-content .ift-cart-totals--drawer .cart-summary-line {
  padding-left: 1rem;
  padding-right: 1rem;
}

#blockcart-content .ift-cart-totals--drawer .infront-cart-summary-line--total {
  padding-left: 1rem;
  padding-right: 1rem;
}

#blockcart-content .ift-cart-totals__drawer-actions {
  padding: 0.85rem 1rem 1rem;
  border-top: 1px solid var(--ift-totals-line);
  background: #fff;
}

#blockcart-content .ift-cart-totals__drawer-actions .ift-cart-totals__checkout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--ift-totals-brand-dark) 0%, var(--ift-totals-brand) 55%, var(--ift-totals-brand-2) 100%);
  box-shadow: 0 6px 16px rgba(14, 165, 233, 0.24);
  font-weight: 800;
  color: #fff !important;
  text-decoration: none !important;
}

#blockcart-content .ift-cart-totals__drawer-actions .ift-cart-totals__view-cart-btn {
  margin-top: 0.5rem;
  min-height: 2.5rem;
  border-radius: 10px;
  border: 1px solid var(--ift-totals-line);
  background: var(--ift-totals-soft);
  font-weight: 700;
  color: var(--ift-totals-ink) !important;
}

#blockcart-content .ift-cart-totals__drawer-actions .ift-cart-totals__view-cart-btn:hover {
  background: #f0f9ff;
  border-color: #bae6fd;
  color: var(--ift-totals-brand-dark) !important;
}

#blockcart-content .ift-cart-totals__alert {
  margin-bottom: 0.65rem;
  border-radius: 10px;
  font-size: 0.8125rem;
  text-align: left;
}

/* ------------------------------------------------------------------ */
/* Mobile tweaks                                                      */
/* ------------------------------------------------------------------ */

@media (max-width: 991.98px) {
  body#cart .ift-cart-totals-card.infront-cart-summary {
    margin-top: 0.5rem;
  }

  body#cart .ift-cart-totals .infront-amount--total {
    font-size: 1.375rem;
  }
}
