#shopping_cart.store-cart,
#shopping_cart.store-cart *,
#shopping_cart.store-cart *::before,
#shopping_cart.store-cart *::after {
  box-sizing: border-box;
}

#shopping_cart.store-cart {
  --cart-ink: #f3f4f6;
  --cart-body: #d9dbe0;
  --cart-muted: #aeb3bb;
  --cart-line: rgba(211, 216, 224, 0.18);
  --cart-accent: #ff741f;
  --cart-accent-light: #ff9b55;
  width: min(1260px, calc(100% - 48px));
  margin: 28px auto 0;
  padding: 0;
  color: var(--cart-body);
  font-size: 15px;
}

#content:not(.store-page) #shopping_cart.store-cart {
  padding: 18px;
  border: 1px solid var(--cart-line);
  border-radius: 12px;
  background:
    radial-gradient(ellipse at 65% 0%, rgba(46, 48, 55, 0.32), transparent 50%),
    linear-gradient(145deg, #111216 0%, #191b20 54%, #111216 100%);
}

.store-cart__heading-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 14px;
}

.store-cart__countdown {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--cart-muted);
  font-size: 0.78rem;
}

.store-cart__countdown .cart-countdown-container {
  border: 1px solid var(--cart-accent);
  border-radius: 6px;
  padding: 5px 8px;
  color: var(--cart-accent-light);
}

.store-cart__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(285px, 0.95fr);
  align-items: stretch;
  gap: 14px;
}

.store-cart__panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--cart-line);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
}

.store-cart__panel-header {
  display: flex;
  min-height: 56px;
  align-items: center;
  padding: 13px 16px;
  border-bottom: 1px solid rgba(211, 216, 224, 0.13);
}

.store-cart__panel-header h3 {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--cart-ink);
  font-size: 1.12rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.store-cart__panel-header h3 i {
  color: var(--cart-accent);
  font-size: 1.2rem;
}

#content.store-page #shopping_cart.store-cart .store-cart__panel-header h3 {
  font-size: 1.12rem;
}

.store-cart__items-list {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.store-cart__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto 30px;
  grid-template-areas: "product quantity subtotal remove";
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid rgba(211, 216, 224, 0.09);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.035);
}

.store-cart__product {
  display: flex;
  min-width: 0;
  grid-area: product;
  align-items: center;
  gap: 11px;
}

.store-cart__product-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border: 1px solid rgba(255, 116, 31, 0.26);
  border-radius: 8px;
  background: rgba(255, 116, 31, 0.08);
  color: var(--cart-accent);
  font-size: 17px;
}

.store-cart__product-copy {
  min-width: 0;
}

.store-cart__product-name {
  margin: 0;
  color: var(--cart-ink);
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.store-cart__product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 8px;
  margin-top: 3px;
  color: var(--cart-muted);
  font-size: 0.72rem;
  line-height: 1.35;
}

.store-cart__quantity {
  display: flex;
  grid-area: quantity;
  align-items: center;
  gap: 3px;
  margin: 0;
}

.store-cart__quantity button {
  display: grid;
  width: 27px;
  height: 28px;
  flex: 0 0 27px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--cart-line);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--cart-body);
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.store-cart__quantity button:hover {
  border-color: var(--cart-accent);
  color: var(--cart-accent-light);
}

.store-cart__quantity .qty {
  width: 35px;
  height: 28px;
  margin: 0;
  padding: 0 3px;
  border: 1px solid var(--cart-line);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--cart-ink);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

#content.store-page #shopping_cart.store-cart .store-cart__quantity .qty {
  height: 28px;
  min-height: 28px;
}

.store-cart__subtotal {
  display: grid;
  grid-area: subtotal;
  justify-items: end;
  gap: 2px;
  color: var(--cart-ink);
  font-size: 0.88rem;
  font-weight: 750;
  line-height: 1.25;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.store-cart__subtotal del {
  color: var(--cart-muted);
  font-size: 0.72rem;
  font-weight: 500;
}

.store-cart__subtotal strong {
  color: var(--cart-ink);
}

.store-cart__remove-form {
  grid-area: remove;
  margin: 0;
}

.store-cart__remove {
  display: grid;
  width: 28px;
  height: 30px;
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--cart-muted);
  font-size: 15px;
  cursor: pointer;
}

.store-cart__remove:hover {
  border-color: rgba(255, 116, 31, 0.32);
  background: rgba(255, 116, 31, 0.08);
  color: var(--cart-accent-light);
}

.store-cart__empty {
  display: flex;
  min-height: 120px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  color: var(--cart-muted);
  text-align: center;
}

.store-cart__empty i {
  color: var(--cart-accent);
  font-size: 25px;
}

.store-cart__empty strong {
  color: var(--cart-body);
  font-size: 0.9rem;
  font-weight: 650;
}

.store-cart__summary-content {
  padding: 14px 16px 16px;
}

.store-cart__summary-row,
.store-cart__summary-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.store-cart__summary-row {
  padding: 0 0 12px;
  color: var(--cart-muted);
  font-size: 0.84rem;
}

.store-cart__summary-row strong {
  color: var(--cart-body);
  font-size: 0.84rem;
  font-weight: 650;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.store-cart__coupon-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
  margin: 0;
}

.store-cart__coupon-form input {
  width: 100%;
  min-width: 0;
  height: 39px;
  margin: 0;
  padding: 0 11px;
  border: 1px solid rgba(211, 216, 224, 0.28);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--cart-ink);
  font: inherit;
  font-size: 0.78rem;
}

#content.store-page #shopping_cart.store-cart .store-cart__coupon-form input[name="coupon"] {
  height: 39px;
  min-height: 39px;
}

.store-cart__coupon-form input::placeholder {
  color: var(--cart-muted);
  opacity: 1;
}

.store-cart__coupon-form button {
  min-height: 39px;
  padding: 0 11px;
  border: 1px solid var(--cart-accent);
  border-radius: 6px;
  background: transparent;
  color: var(--cart-accent-light);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 750;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 150ms ease-out, color 150ms ease-out;
}

.store-cart__coupon-form button:hover {
  background: var(--cart-accent);
  color: #17191d;
}

.store-cart__summary-total {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(211, 216, 224, 0.16);
  color: var(--cart-ink);
  font-size: 1rem;
  font-weight: 750;
}

.store-cart__summary-total strong {
  color: var(--cart-accent);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.store-cart__checkout-wrap {
  margin-top: 17px;
}

.store-cart__checkout {
  display: flex;
  width: 100%;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--cart-accent);
  border-radius: 7px;
  background: var(--cart-accent);
  color: #17191d;
  font-size: 0.87rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color 150ms ease-out, border-color 150ms ease-out;
}

.store-cart__checkout:hover {
  border-color: var(--cart-accent-light);
  background: var(--cart-accent-light);
  color: #17191d;
  text-decoration: none;
}

.store-cart__checkout .material-icons {
  font-size: 18px;
}

.store-cart__sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

#shopping_cart.store-cart :focus-visible {
  outline: 3px solid var(--cart-accent-light);
  outline-offset: 3px;
}

@media (max-width: 720px) {
  #shopping_cart.store-cart {
    width: min(700px, calc(100% - 36px));
  }

  .store-cart__layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  #shopping_cart.store-cart {
    width: calc(100% - 28px);
    margin-top: 22px;
  }

  #content:not(.store-page) #shopping_cart.store-cart {
    width: calc(100% - 24px);
    padding: 13px;
  }

  .store-cart__item {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "product remove"
      "quantity subtotal";
    gap: 10px;
    padding: 11px;
  }

  .store-cart__quantity {
    justify-self: start;
  }

  .store-cart__summary-content {
    padding-inline: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .store-cart__coupon-form button,
  .store-cart__checkout {
    transition: none;
  }
}
