/* Nav cart button */
.np-cart-nav {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #12324a;
  cursor: pointer;
  margin-right: .25rem;
}
.np-cart-nav-count {
  position: absolute;
  top: -.15rem;
  right: -.15rem;
  min-width: 1.05rem;
  height: 1.05rem;
  padding: 0 .2rem;
  border-radius: 999px;
  background: #FF6713;
  color: #fff;
  font-size: .65rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}
.np-cart-nav-count[hidden] { display: none; }

.np-cart-fab {
  position: fixed;
  right: 1rem;
  bottom: 5.5rem;
  z-index: 90;
  width: 3.1rem;
  height: 3.1rem;
  border: 0;
  border-radius: 999px;
  background: #0A568E;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(10, 86, 142, 0.28);
  cursor: pointer;
}
.np-cart-fab-count {
  position: absolute;
  top: -.2rem;
  right: -.2rem;
  min-width: 1.2rem;
  height: 1.2rem;
  padding: 0 .25rem;
  border-radius: 999px;
  background: #FF6713;
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}
.np-cart-fab-count[hidden] { display: none; }

/* Match previous SSP checkout drawer shell */
.np-cart-backdrop {
  position: fixed;
  inset: 0;
  z-index: 430;
  background: rgba(7, 30, 51, .46);
}
.np-cart-backdrop[hidden] { display: none; }

.np-cart-drawer {
  position: fixed;
  z-index: 431;
  top: 0;
  right: 0;
  width: min(26.5rem, 100%);
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  box-shadow: -18px 0 40px rgba(7, 30, 51, .16);
  box-sizing: border-box;
  transform: translateX(110%);
  transition: transform .28s ease;
}
.np-cart-drawer.is-on { transform: translateX(0); }
.np-cart-drawer[hidden] { display: none; }

.np-cart-head {
  position: relative;
  flex: 0 0 auto;
  padding: 1.15rem 1.15rem .85rem;
  padding-right: 3rem;
  border-bottom: 1px solid #EAF1F6;
}
.np-cart-kicker {
  margin: 0 0 .25rem;
  font-size: .66rem;
  font-weight: 750;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #0A568E;
}
.np-cart-head h2 {
  margin: 0 0 .25rem;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  color: #073A61;
}
.np-cart-head-price {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #073A61;
}
.np-cart-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #F4F8FB;
  cursor: pointer;
}
.np-cart-close::before,
.np-cart-close::after {
  content: "";
  position: absolute;
  left: .58rem;
  top: 1rem;
  width: .9rem;
  height: 2px;
  background: #0A4A73;
}
.np-cart-close::before { transform: rotate(45deg); }
.np-cart-close::after { transform: rotate(-45deg); }

.np-cart-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: .85rem 1.15rem 1.1rem;
  -webkit-overflow-scrolling: touch;
}

.np-cart-sticky {
  flex: 0 0 auto;
  padding: .85rem 1.15rem 1.15rem;
  border-top: 1px solid #EAF1F6;
  background: #fff;
  box-shadow: 0 -10px 24px rgba(7, 30, 51, .06);
}

.np-cart-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .45rem .75rem;
  padding: .8rem 0;
  border-bottom: 1px solid #EAF1F6;
}
.np-cart-line-name {
  margin: 0;
  font-weight: 750;
  color: #073A61;
  font-size: .95rem;
}
.np-cart-line-meta {
  margin: .2rem 0 0;
  color: #5A6874;
  font-size: .78rem;
}
.np-cart-line-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .35rem;
}
.np-cart-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid #D7E3EE;
  border-radius: 8px;
  overflow: hidden;
}
.np-cart-qty button {
  width: 1.75rem;
  height: 1.75rem;
  border: 0;
  background: #F4F8FB;
  cursor: pointer;
  font-weight: 700;
  color: #0A4A73;
}
.np-cart-qty span {
  min-width: 1.5rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-size: .85rem;
  font-weight: 750;
}
.np-cart-remove {
  border: 0;
  background: transparent;
  color: #8a4b3a;
  font-size: .74rem;
  cursor: pointer;
  text-decoration: underline;
}

.np-cart-empty {
  margin: .85rem 0;
  color: #5A6874;
  font-size: .9rem;
}

.np-cart-offers {
  margin: 1rem 0 .75rem;
  padding: .85rem;
  background: #F4F8FB;
  border-radius: 12px;
}
.np-cart-offers-title {
  margin: 0 0 .55rem;
  font-size: .66rem;
  font-weight: 750;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #0A568E;
}
.np-cart-offer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
  padding: .7rem .75rem;
  margin-bottom: .45rem;
  background: #fff;
  border: 1px solid #D7E3EE;
  border-radius: 10px;
}
.np-cart-offer:last-child { margin-bottom: 0; }
.np-cart-offer.is-applied {
  border-color: #0A568E;
  box-shadow: inset 0 0 0 1px #0A568E;
}
.np-cart-offer.is-best {
  border-color: #FF6713;
  background: linear-gradient(180deg, #fff8f3 0%, #fff 72%);
}
.np-cart-offer.is-disabled {
  opacity: .62;
  background: #F7F9FB;
  border-style: dashed;
}
.np-cart-offer-copy strong {
  display: block;
  font-size: .9rem;
  color: #073A61;
}
.np-cart-offer-copy span {
  display: block;
  margin-top: .15rem;
  font-size: .76rem;
  color: #5A6874;
  line-height: 1.4;
}
.np-cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: .35rem;
  padding: .15rem .45rem;
  border-radius: 999px;
  background: #FF6713;
  color: #fff;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
  line-height: 1;
  font-style: normal;
}
.np-cart-badge.is-muted {
  background: #D7E3EE;
  color: #5A6874;
}
.np-cart-offer button {
  flex-shrink: 0;
  border: 1px solid #0A568E;
  background: #fff;
  color: #0A568E;
  border-radius: 8px;
  padding: .35rem .65rem;
  font-size: .76rem;
  font-weight: 750;
  cursor: pointer;
}
.np-cart-offer.is-applied button {
  background: #0A568E;
  color: #fff;
}
.np-cart-offer.is-disabled button {
  border-color: #C5D2DE;
  background: #EEF3F7;
  color: #7A8792;
  cursor: not-allowed;
}

.np-cart-coupon { margin: .85rem 0; }
.np-cart-coupon label {
  display: block;
  font-size: .74rem;
  font-weight: 750;
  margin-bottom: .3rem;
  color: #073A61;
}
.np-cart-coupon-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .5rem;
}
.np-cart-coupon-row input {
  width: 100%;
  border: 1px solid #D0DCE7;
  border-radius: 10px;
  padding: .7rem .8rem;
  font: inherit;
  background: #fff;
}
.np-cart-coupon-row input:focus {
  outline: none;
  border-color: #0A568E;
  box-shadow: 0 0 0 3px rgba(10, 86, 142, .12);
}

.np-cart-totals {
  margin: .85rem 0 1rem;
  border-top: 1px solid #EAF1F6;
  padding-top: .75rem;
}
.np-cart-totals > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .35rem;
  font-size: .9rem;
}
.np-cart-savings { color: #1f7a4d; }
.np-cart-total {
  margin-top: .3rem;
  padding-top: .4rem;
  border-top: 1px dashed #D7E3EE;
  font-size: 1.02rem;
}

.np-cart-fields { display: grid; gap: .6rem; margin-bottom: .75rem; }
.np-cart-field label {
  display: block;
  font-size: .74rem;
  font-weight: 750;
  margin-bottom: .28rem;
  color: #073A61;
}
.np-cart-field input {
  width: 100%;
  border: 1px solid #D0DCE7;
  border-radius: 10px;
  padding: .72rem .8rem;
  font: inherit;
  background: #fff;
}
.np-cart-field input:focus {
  outline: none;
  border-color: #0A568E;
  box-shadow: 0 0 0 3px rgba(10, 86, 142, .12);
}
.np-cart-field-hint {
  margin: .3rem 0 0;
  font-size: .72rem;
  color: #5A6874;
  line-height: 1.4;
}

.np-cart-policy {
  margin: 0 0 .75rem;
  padding: .85rem;
  background: #F4F8FB;
  border-radius: 12px;
  font-size: .8rem;
}
.np-cart-policy-title {
  margin: 0 0 .4rem;
  font-weight: 800;
  color: #073A61;
}
.np-cart-policy ul {
  margin: 0;
  padding-left: 1.1rem;
  color: #3E5160;
}
.np-cart-policy li { margin-bottom: .25rem; }
.np-cart-policy-check {
  display: flex;
  gap: .55rem;
  align-items: flex-start;
  font-size: .8rem;
  margin: 0 0 .25rem;
  color: #3E5160;
}
.np-cart-policy-check input { margin-top: .2rem; }

.np-cart-pay {
  width: 100%;
  position: relative;
  min-height: 2.85rem;
}
.np-cart-pay.is-loading .np-cart-submit-label { opacity: 0; }
.np-cart-pay.is-loading .np-cart-submit-spin {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: np-cart-spin .7s linear infinite;
  position: absolute;
  left: 50%;
  top: 50%;
  margin: -.5rem 0 0 -.5rem;
}
.np-cart-submit-spin { display: none; }
@keyframes np-cart-spin { to { transform: rotate(360deg); } }

.np-cart-status {
  display: none;
  margin-top: .65rem;
  font-size: .82rem;
  line-height: 1.4;
}
.np-cart-status.is-visible { display: block; }
.np-cart-status.is-error { color: #a33; }
.np-cart-status.is-loading { color: #0A568E; }
.np-cart-status.is-warn { color: #8a5a12; }
.np-cart-secure {
  margin: .65rem 0 0;
  font-size: .74rem;
  line-height: 1.45;
  color: #5A6874;
}

body.np-cart-open { overflow: hidden; }
body.np-cart-open .ssp-sticky-buy { display: none !important; }

@media (max-width: 720px) {
  .np-cart-drawer {
    top: auto;
    bottom: 0;
    width: 100%;
    height: min(92vh, 100%);
    border-radius: 18px 18px 0 0;
    transform: translateY(110%);
  }
  .np-cart-drawer.is-on { transform: translateY(0); }
  .np-cart-fab { bottom: 5.2rem; }
}
