/* Style the native Sellfy cart preview, keeping its contents and controls. */
#ep .store-cart-popup .shopping-cart-content {
  --cart-paper: #fcfaf6;
  --cart-ink: #2b1b42;
  --cart-muted: #655270;
  --cart-rule: #d8cbe2;
  max-block-size: calc(100dvh - 90px);
  overflow-y: auto;
  overscroll-behavior: contain;
  color: var(--cart-ink);
  background: var(--cart-paper) var(--ez-paper-grain, none);
  border: 1px solid var(--cart-rule);
  border-radius: 2px;
  box-shadow: 2px 5px 9px #2113372b, 0 18px 34px #26133928;
}

#ep .store-cart-popup .shopping-cart-content > .content {
  background: transparent;
}

#ep .store-cart-popup .shopping-cart-content .header {
  border-color: var(--cart-rule);
}

#ep .store-cart-popup .shopping-cart-content .header h4 {
  margin: 0;
  color: var(--cart-ink);
  font: 590 24px/1.17 EZSpace, "Space Grotesk", sans-serif;
  letter-spacing: -.037em;
}

#ep .store-cart-popup .shopping-cart-content .items .product {
  padding-block: 14px;
  border-color: var(--cart-rule);
}

#ep .store-cart-popup .shopping-cart-content :is(.product-title, .price) {
  color: var(--cart-ink);
  font-weight: 590;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

#ep .store-cart-popup .shopping-cart-content :is(.variant-info, .old-price, .remove-item, .cart-link) {
  color: var(--cart-muted);
}

#ep .store-cart-popup .shopping-cart-content :is(.remove-item, .cart-link) {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 3px;
}

#ep .store-cart-popup .shopping-cart-content .order-totals {
  border-color: var(--cart-rule);
}

#ep .store-cart-popup .shopping-cart-content .subtotal {
  color: var(--cart-ink);
  line-height: 1.1;
  margin-bottom: 0;
}

#ep .store-cart-popup .shopping-cart-content .checkout-button {
  background: #3217c6;
  border-radius: 3px;
  box-shadow: 0 3px #241365;
  font-weight: 650;
}

.ez-cart-subtotal-label {
  display: block;
  margin-bottom: 4px;
  color: var(--cart-muted);
  font-size: 12px;
  font-weight: 500;
}

.ez-cart-reminder {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 12px;
  margin-top: 13px;
  color: var(--cart-muted);
  font-size: 12px;
  line-height: 1.35;
}

#ep .store-cart-popup .ez-cart-keep-shopping {
  min-height: 44px;
  padding: 0;
  color: #4320a7;
  background: transparent;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

#ep .store-cart-popup :is(a, button):focus-visible {
  outline: 2px solid #3217c6;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: no-preference) {
  .navigation.module .shopping-cart-button[data-ez-cart-filled] > :is(svg, .cart-indicator) {
    animation: ez-cart-hop 7s 120ms ease-in-out infinite both;
  }

  @keyframes ez-cart-hop {
    0%, 4.5%, 8.5%, 100% { translate: 0 0; }
    2.4% { translate: 0 -5px; }
    6.3% { translate: 0 -2px; }
  }
}
