/** Shopify CDN: Minification failed

Line 1287:19 Expected identifier but found whitespace
Line 1287:21 Unexpected "{"
Line 1287:31 Expected ":"

**/
/* Native Cart Drawer — PWT Sitespeed */

/* =============================================
   1. Drawer Shell & Overlay
   ============================================= */

.native-cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  visibility: hidden;
}

.native-cart-drawer.is-open {
  pointer-events: auto;
  visibility: visible;
}

.native-cart-overlay {
  position: absolute;
  inset: 0;
  background: var(--ncd-overlay, #000);
  opacity: 0;
  transition: opacity 0.35s ease;
  cursor: pointer;
}

.native-cart-drawer.is-open .native-cart-overlay {
  opacity: var(--ncd-overlay-opacity, 0.45);
}

/* =============================================
   2. Panel
   ============================================= */

.native-cart-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: var(--ncd-panel-width, 430px);
  max-width: 100%;
  background: var(--ncd-panel-bg, #fff);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.08);
}

.native-cart-drawer.is-open .native-cart-panel {
  transform: translateX(0);
}

/* =============================================
   3. Header
   ============================================= */

.native-cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--ncd-border, #e5e5e5);
  flex-shrink: 0;
}

.native-cart-header h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  text-transform: lowercase;
  letter-spacing: 0.12em;
  font-family: "FunctionPro Book", sans-serif;
}

.native-cart-count {
  font-size: 13px;
  color: var(--ncd-text-secondary, #777);
  margin-left: 6px;
  font-weight: 400;
}

.native-cart-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  line-height: 0;
  color: var(--ncd-text, #000);
}

.native-cart-close svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
}

/* =============================================
   4. Body (scrollable)
   ============================================= */

.native-cart-body {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  position: relative;
}

/* =============================================
   5. Reward Progress Bar (multi-tier)
   ============================================= */

.reward-bar {
  padding: 16px 24px 20px;
  text-align: center;
}

.reward-bar__message {
  font-size: 13px;
  margin-bottom: 10px;
  color: var(--ncd-text, #333);
  letter-spacing: 0.02em;
  min-height: 1.4em;
}

.reward-bar__message b {
  font-weight: 600;
}

.reward-bar__track-wrapper {
  position: relative;
  padding-bottom: 22px;
}

.reward-bar__track {
  height: 6px;
  background: var(--ncd-shipping-track, #eee);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.reward-bar__fill {
  height: 100%;
  background: var(--ncd-shipping-fill, #000);
  border-radius: 3px;
  width: 0%;
  transition: width 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reward-bar.is-qualified .reward-bar__fill {
  background: var(--ncd-shipping-qualified, #2d6b2d);
}

/* Celebration pulse */
@keyframes rewardPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.reward-bar.is-qualified .reward-bar__fill {
  animation: rewardPulse 1.5s ease-in-out 1;
}

/* Tick marks */
.reward-bar__ticks {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  pointer-events: none;
}

.reward-bar__tick {
  position: absolute;
  top: -2px;
  width: 2px;
  height: 10px;
  background: var(--ncd-shipping-track, #ccc);
  transform: translateX(-50%);
  border-radius: 1px;
  transition: background 0.3s ease;
}

.reward-bar__tick.is-reached {
  background: var(--ncd-shipping-qualified, #2d6b2d);
}

/* Labels below ticks */
.reward-bar__labels {
  position: absolute;
  top: 14px;
  left: 0;
  right: 0;
  height: 20px;
}

.reward-bar__label {
  position: absolute;
  transform: translateX(-50%);
  font-size: 10px;
  color: var(--ncd-text-muted, #999);
  letter-spacing: 0.02em;
  text-transform: lowercase;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.reward-bar__label.is-reached {
  color: var(--ncd-shipping-qualified, #2d6b2d);
  font-weight: 600;
}

/* =============================================
   6. Cart Items
   ============================================= */

.native-cart-items {
  padding: 0;
}

.native-cart-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--ncd-border, #f0f0f0);
  position: relative;
  animation: cartItemIn 0.3s ease forwards;
}

@keyframes cartItemIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.native-cart-item.is-removing {
  animation: cartItemOut 0.3s ease forwards;
  overflow: hidden;
}

@keyframes cartItemOut {
  from {
    opacity: 1;
    max-height: 200px;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    transform: translateX(30px);
  }
}

/* Item image */
.native-cart-item__image {
  flex-shrink: 0;
  width: 80px;
}

.native-cart-item__image a {
  display: block;
}

.native-cart-item__image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Item details */
.native-cart-item__details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.native-cart-item__name a {
  color: var(--ncd-text, #000);
  text-decoration: none;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.4;
}

.native-cart-item__name a:hover {
  text-decoration: underline;
}

.native-cart-item__variant {
  font-size: 12px;
  color: var(--ncd-text-secondary, #777);
  line-height: 1.4;
}

.native-cart-item__selling-plan {
  font-size: 11px;
  color: var(--ncd-text-muted, #999);
}

.native-cart-item__properties {
  font-size: 11px;
  color: var(--ncd-text-muted, #999);
  line-height: 1.4;
}

/* Remove button */
.native-cart-item__remove {
  position: absolute;
  top: 14px;
  right: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  line-height: 0;
  color: var(--ncd-text-muted, #999);
  transition: color 0.15s;
}

.native-cart-item__remove:hover {
  color: var(--ncd-text, #000);
}

.native-cart-item__remove svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2;
}

/* Bottom row: qty + price */
.native-cart-item__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 6px;
}

/* Quantity selector */
.native-cart-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--ncd-border, #ddd);
  border-radius: 0;
  height: 32px;
}

.native-cart-qty button {
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #333;
  transition: background 0.15s;
}

.native-cart-qty button:hover {
  background: #f5f5f5;
}

.native-cart-qty button svg {
  width: 12px;
  height: 12px;
  pointer-events: none;
}

.native-cart-qty input {
  width: 34px;
  height: 100%;
  text-align: center;
  border: none;
  border-left: 1px solid var(--ncd-border, #ddd);
  border-right: 1px solid var(--ncd-border, #ddd);
  font-size: 13px;
  padding: 0;
  margin: 0;
  -moz-appearance: textfield;
  font-family: inherit;
  background: transparent;
}

.native-cart-qty input::-webkit-outer-spin-button,
.native-cart-qty input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Item price */
.native-cart-item__price {
  text-align: right;
  font-size: 13px;
  color: var(--ncd-text, #000);
  letter-spacing: 0.02em;
}

.native-cart-item__price--sale {
  color: var(--ncd-sale, #c00);
}

.native-cart-item__price--original {
  text-decoration: line-through;
  color: var(--ncd-text-muted, #999);
  font-size: 12px;
  margin-right: 4px;
}

.native-cart-item__line-discount {
  font-size: 11px;
  color: var(--ncd-sale, #c00);
  margin-top: 2px;
}

/* =============================================
   7. Cart Note (collapsible)
   ============================================= */

.native-cart-note {
  padding: 0 24px;
  border-bottom: 1px solid var(--ncd-border, #f0f0f0);
}

.native-cart-note__toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 12px;
  color: var(--ncd-text-secondary, #555);
  padding: 14px 0;
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: lowercase;
  letter-spacing: 0.03em;
}

.native-cart-note__toggle svg {
  width: 10px;
  height: 10px;
  transition: transform 0.2s;
  flex-shrink: 0;
}

.native-cart-note.is-open .native-cart-note__toggle svg {
  transform: rotate(90deg);
}

.native-cart-note__field {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.native-cart-note.is-open .native-cart-note__field {
  max-height: 120px;
  padding-bottom: 14px;
}

.native-cart-note__field textarea {
  width: 100%;
  border: 1px solid #ddd;
  padding: 10px 12px;
  font-size: 13px;
  font-family: inherit;
  resize: vertical;
  min-height: 60px;
  max-height: 100px;
  outline: none;
  transition: border-color 0.15s;
}

.native-cart-note__field textarea:focus {
  border-color: var(--ncd-text, #000);
}

/* =============================================
   8. Upsell Section
   ============================================= */

.native-cart-upsell {
  flex-shrink: 0;
  padding: 8px 24px;
  border-top: 1px solid var(--ncd-border, #f0f0f0);
}

.native-cart-upsell__title {
  font-size: 10px;
  text-transform: lowercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
  color: var(--ncd-text, #333);
  font-weight: 400;
}

/* Upsell skeleton loader */
.native-cart-upsell__loader {
  display: flex;
  gap: 8px;
  overflow: hidden;
}

.native-cart-upsell__skeleton {
  flex: 0 0 75px;
}

.native-cart-upsell__skeleton-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--ncd-border, #eee);
  border-radius: 2px;
  margin-bottom: 4px;
  animation: ncdShimmer 1.4s ease-in-out infinite;
}

.native-cart-upsell__skeleton-title {
  height: 8px;
  width: 75%;
  background: var(--ncd-border, #eee);
  border-radius: 2px;
  margin-bottom: 4px;
  animation: ncdShimmer 1.4s ease-in-out infinite 0.1s;
}

.native-cart-upsell__skeleton-price {
  height: 8px;
  width: 40%;
  background: var(--ncd-border, #eee);
  border-radius: 2px;
  animation: ncdShimmer 1.4s ease-in-out infinite 0.2s;
}

@keyframes ncdShimmer {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.native-cart-upsell__grid {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
  animation: upsellReveal 0.35s ease forwards;
}

@keyframes upsellReveal {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.native-cart-upsell__grid::-webkit-scrollbar {
  height: 0;
  display: none;
}

.native-cart-upsell__card {
  flex: 0 0 75px;
  scroll-snap-align: start;
  text-align: center;
  text-decoration: none;
  color: inherit;
}

.native-cart-upsell__card-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  margin-bottom: 4px;
}

.native-cart-upsell__card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.native-cart-upsell__card-name {
  font-size: 10px;
  color: var(--ncd-text, #000);
  margin-bottom: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.native-cart-upsell__card-name a {
  color: inherit;
  text-decoration: none;
}

.native-cart-upsell__card-price {
  font-size: 10px;
  color: var(--ncd-text-secondary, #555);
}

/* =============================================
   9. Footer (sticky bottom)
   ============================================= */

.native-cart-footer {
  flex-shrink: 0;
  border-top: 1px solid var(--ncd-border, #e5e5e5);
  padding: 16px 24px 20px;
  background: var(--ncd-panel-bg, #fff);
}

.native-cart-footer__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--ncd-text-secondary, #555);
  margin-bottom: 6px;
}

.native-cart-footer__row:last-of-type {
  margin-bottom: 0;
}

.native-cart-footer__subtotal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 50px;
  font-size: 15px;
  color: var(--ncd-text, #000);
  font-weight: 400;
  letter-spacing: 0.04em;
  margin: 10px 0 12px;
}

.native-cart-footer__subtotal-label {
  text-transform: lowercase;
  font-size: 13px;
  letter-spacing: 0.1em;
}

.native-cart-footer__discounts {
  margin-bottom: 8px;
}

.native-cart-footer__discount-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ncd-sale, #c00);
  margin-bottom: 4px;
}

.native-cart-redo-slot {
  min-height: 0;
  padding: 8px 0;
}

/* Redo row */
.native-cart-redo-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 10px 0 4px;
}

.native-cart-redo-row__info {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.native-cart-redo-row__logo {
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  color: var(--ncd-text, #000);
  flex-shrink: 0;
  margin-top: 1px;
}

.native-cart-redo-row__label {
  font-size: 12px;
  color: var(--ncd-text, #000);
  letter-spacing: 0.02em;
}

.native-cart-redo-row__tooltip {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  color: var(--ncd-text-muted, #999);
  padding: 8px;
  margin: -8px 0 -8px 0;
  line-height: 1;
  vertical-align: middle;
  -webkit-tap-highlight-color: transparent;
}

.native-cart-redo-row__tooltip:hover {
  color: var(--ncd-text, #000);
}

.native-cart-redo-row__sub {
  font-size: 11px;
  color: var(--ncd-text-muted, #999);
  margin-top: 2px;
}

.native-cart-redo-row__price {
  font-size: 13px;
  color: var(--ncd-text, #000);
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

/* Checkout-without link */
.native-cart-redo-skip {
  display: block;
  text-align: center;
  font-size: 11px;
  color: var(--ncd-text-secondary, #777);
  text-decoration: underline;
  margin-top: 10px;
  padding: 6px 0;
  letter-spacing: 0.02em;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.native-cart-redo-skip:hover {
  color: var(--ncd-text, #000);
}

/* Redo info modal */
.native-cart-redo-modal {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
}

.native-cart-redo-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.native-cart-redo-modal__content {
  position: relative;
  background: var(--ncd-panel-bg, #fff);
  max-width: 420px;
  width: 90%;
  padding: 32px 28px;
  border-radius: 4px;
  z-index: 1;
}

.native-cart-redo-modal__close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
  line-height: 1;
  padding: 10px;
  -webkit-tap-highlight-color: transparent;
}

.native-cart-redo-modal__close:hover {
  color: var(--ncd-text, #000);
}

.native-cart-redo-modal__content h3 {
  font-size: 18px;
  font-weight: 400;
  margin: 0 0 12px;
  letter-spacing: 0.02em;
}

.native-cart-redo-modal__content > p {
  font-size: 13px;
  color: var(--ncd-text-secondary, #555);
  line-height: 1.5;
  margin: 0 0 20px;
}

.native-cart-redo-modal__feature {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.native-cart-redo-modal__icon {
  font-size: 20px;
  flex-shrink: 0;
  width: 28px;
  text-align: center;
  color: var(--ncd-text, #000);
}

.native-cart-redo-modal__feature div {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ncd-text, #333);
}

.native-cart-redo-modal__feature strong {
  font-weight: 600;
}

.native-cart-redo-modal__legal {
  font-size: 11px;
  color: var(--ncd-text-muted, #999);
  line-height: 1.5;
  margin: 20px 0 0;
}

.native-cart-redo-modal__legal a {
  color: var(--ncd-text-muted, #999);
  text-decoration: underline;
}

.native-cart-checkout {
  display: block;
  width: 100%;
  background: var(--ncd-checkout-bg, #000);
  color: var(--ncd-checkout-text, #fff);
  border: none;
  cursor: pointer;
  font-size: 14px;
  text-transform: lowercase;
  letter-spacing: 0.12em;
  padding: 14px;
  margin-top: 14px;
  transition: opacity 0.15s;
  font-family: "FunctionPro Book", sans-serif;
  text-align: center;
}

.native-cart-checkout:hover {
  opacity: 0.85;
}

/* =============================================
   10. Empty State
   ============================================= */

.native-cart-empty {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 24px 24px;
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.native-cart-drawer.is-empty .native-cart-body,
.native-cart-drawer.is-empty .native-cart-upsell,
.native-cart-drawer.is-empty .native-cart-footer {
  display: none;
}

.native-cart-drawer.is-empty .native-cart-empty {
  display: flex;
}

.native-cart-empty__icon {
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
}

.native-cart-empty__headline {
  font-size: 14px;
  color: var(--ncd-text-secondary, #555);
  margin: 0 0 6px;
  letter-spacing: 0.06em;
  text-transform: lowercase;
}

.native-cart-empty__subtext {
  font-size: 12px;
  color: var(--ncd-text-muted, #999);
  margin: 0 0 20px;
  letter-spacing: 0.03em;
}

.native-cart-empty__continue {
  display: inline-block;
  background: var(--ncd-checkout-bg, #000);
  color: var(--ncd-checkout-text, #fff);
  text-decoration: none;
  font-size: 12px;
  text-transform: lowercase;
  letter-spacing: 0.1em;
  padding: 12px 28px;
  transition: opacity 0.15s;
}

.native-cart-empty__continue:hover {
  opacity: 0.85;
  color: var(--ncd-checkout-text, #fff);
}

/* Quick collection pill links */
.native-cart-empty__links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.native-cart-empty__link {
  border: 1px solid var(--ncd-border, #ddd);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 11px;
  text-transform: lowercase;
  letter-spacing: 0.04em;
  color: var(--ncd-text, #333);
  text-decoration: none;
  transition: border-color 0.15s;
}

.native-cart-empty__link:hover {
  border-color: var(--ncd-text, #000);
  color: var(--ncd-text, #000);
}

/* Recommendations section */
.native-cart-empty__recs {
  width: 100%;
  margin-top: 28px;
}

.native-cart-empty__recs-divider {
  border: none;
  border-top: 1px solid var(--ncd-border, #e5e5e5);
  margin: 0 0 12px;
}

.native-cart-empty__recs-title {
  font-size: 11px;
  text-transform: lowercase;
  letter-spacing: 0.1em;
  color: var(--ncd-text, #333);
  margin: 0 0 8px;
  font-weight: 400;
}

.native-cart-empty__recs-loader {
  display: flex;
  gap: 12px;
  overflow: hidden;
}

.native-cart-empty__recs-grid {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
  animation: upsellReveal 0.35s ease forwards;
}

.native-cart-empty__recs-grid::-webkit-scrollbar {
  height: 0;
  display: none;
}

.native-cart-empty__rec-card {
  flex: 0 0 105px;
  scroll-snap-align: start;
  text-align: center;
  text-decoration: none;
  color: inherit;
}

.native-cart-empty__rec-card-image {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  margin-bottom: 6px;
}

.native-cart-empty__rec-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.native-cart-empty__rec-card-name {
  font-size: 11px;
  color: var(--ncd-text, #000);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.native-cart-empty__rec-card-price {
  font-size: 11px;
  color: var(--ncd-text-secondary, #555);
}

/* Brand value props */
.native-cart-empty__props {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--ncd-border, #e5e5e5);
  width: 100%;
}

.native-cart-empty__prop {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  flex: 1;
}

.native-cart-empty__prop-icon {
  width: 16px;
  height: 16px;
}

.native-cart-empty__prop span {
  font-size: 10px;
  color: var(--ncd-text-muted, #999);
  text-transform: lowercase;
  letter-spacing: 0.03em;
  line-height: 1.3;
}

/* =============================================
   11. Body scroll lock
   ============================================= */

body.native-cart-open {
  overflow: hidden;
}

/* =============================================
   12. Loading state
   ============================================= */

.native-cart-drawer.is-loading .native-cart-body,
.native-cart-drawer.is-loading .native-cart-upsell,
.native-cart-drawer.is-loading .native-cart-footer,
.native-cart-drawer.is-loading .native-cart-empty {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
}

/* Flat-line text spinner */
.native-cart-spinner {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 280px;
  width: 100%;
  z-index: 10;
  pointer-events: none;
  overflow: hidden;
}

.native-cart-drawer.is-loading .native-cart-spinner {
  display: block;
}

.native-cart-spinner__track {
  display: flex;
  white-space: nowrap;
  animation: nativeCartScroll 12s linear infinite;
  width: max-content;
}

.native-cart-spinner__text {
  font-family: "FunctionPro Book", sans-serif;
  font-size: 1.6rem;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  color: var(--ncd-text, #000);
  flex-shrink: 0;
}

@keyframes nativeCartScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Loading overlay — blocks clicks during mutations */
.native-cart-drawer.is-loading .native-cart-body::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.5);
  pointer-events: auto;
  z-index: 5;
}

.native-cart-error {
  padding: 12px 24px;
  background: #fef2f2;
  color: #991b1b;
  font-size: 13px;
  text-align: center;
  letter-spacing: 0.02em;
  border-bottom: 1px solid #fecaca;
  animation: cartErrorIn 0.3s ease;
}

@keyframes cartErrorIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =============================================
   13. Add-to-cart button loading state
   ============================================= */

[type="submit"].is-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

[type="submit"].is-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: ncdBtnSpin 0.6s linear infinite;
  color: var(--ncd-checkout-text, #fff);
}

@keyframes ncdBtnSpin {
  to { transform: rotate(360deg); }
}

/* =============================================
   14. Mobile responsive
   ============================================= */

@media only screen and (max-width: 480px) {
  .native-cart-panel {
    width: 100%;
  }

  .native-cart-header {
    padding: 14px 16px;
  }

  .native-cart-item {
    padding: 14px 16px;
    gap: 12px;
  }

  .native-cart-item__image {
    width: 70px;
  }

  .native-cart-item__remove {
    right: 12px;
  }

  .reward-bar {
    padding: 14px 16px 18px;
  }

  .native-cart-note {
    padding: 0 16px;
  }

  .native-cart-upsell {
    padding: 8px 16px;
  }

  .native-cart-footer {
    padding: 14px 16px 18px;
  }

  .native-cart-empty {
    padding: 32px 16px 20px;
  }

  .native-cart-empty__links {
    gap: 6px;
  }

  .native-cart-empty__rec-card {
    flex: 0 0 100px;
  }

  .native-cart-empty__props {
    gap: 12px;
  }

  .native-cart-redo-modal__content {
    padding: 24px 20px;
    width: 92%;
  }

  .native-cart-redo-modal__content h3 {
    font-size: 16px;
  }

  .native-cart-footer {
    padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  }
}

/* =============================================
   15. Cart icon count badge
   ============================================= */

.cart-link__bubble--visible {
  display: flex !important;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: -2px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9px;
  background-color: {{ settings.color_cart_dot | default: "#000" }};
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  font-family: "FunctionPro Book", sans-serif;
  letter-spacing: 0;
  pointer-events: none;
}

[data-icon=bag] .cart-link__bubble--visible,
[data-icon=bag-minimal] .cart-link__bubble--visible {
  top: -2px;
  right: -6px;
}
