/* Cart presentation only. Checkout, catalogue and payment recovery are separate. */
#store-cart {
  --cart-ink: #252730;
  --cart-muted: #74757d;
  --cart-line: #e5e5e2;
  box-sizing: border-box;
  width: min(740px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #ffffffb3;
  border-radius: 24px;
  background: #fff;
  color: var(--cart-ink);
  box-shadow: 0 32px 110px #15182230, 0 4px 20px #15182212;
  font-size: 14px;
  line-height: 1.5;
}
#store-cart *, #store-cart *::before, #store-cart *::after { box-sizing: border-box; }
#store-cart::backdrop { background: #181b285e; backdrop-filter: blur(7px); }
#store-cart .cart-heading { margin: 0; padding: 24px 28px 22px; gap: 16px; }
#store-cart .cart-heading h2 { margin: 0; font-size: 25px; font-weight: 650; letter-spacing: -.045em; }
#store-cart .cart-close {
  display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px;
  padding: 0; border: 1px solid #ebebea; border-radius: 50%; background: #f9f9f7;
  font-size: 26px; color: #73747c; cursor: pointer;
}
#store-cart .cart-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); margin: 0 28px; }
#store-cart .cart-product-panel { min-width: 0; padding: 3px 24px 24px 0; }
#store-cart .cart-line { gap: 14px; align-items: flex-start; border: 0; padding: 0; }
#store-cart .cart-line > div { min-width: 0; }
#store-cart .cart-line img { width: 62px; height: 62px; padding: 0; background: transparent; border-radius: 16px; }
#store-cart .cart-line strong { font-size: 17px; line-height: 1.35; font-weight: 650; letter-spacing: -.035em; overflow-wrap: anywhere; }
#store-cart .cart-line .cart-edition { margin: 5px 0 8px; font-size: 13px; line-height: 1.4; color: #63646d; }
#store-cart .cart-platform { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--cart-muted); }
#store-cart .cart-platform svg { width: 12px; height: 12px; flex-shrink: 0; }
#store-cart .cart-facts { display: grid; gap: 11px; list-style: none; margin: 26px 0; padding: 0; font-size: 13px; line-height: 1.6; color: #63646d; }
#store-cart .cart-facts li { position: relative; padding-left: 16px; }
#store-cart .cart-facts li::before { content: ''; position: absolute; left: 1px; top: .55em; width: 5px; height: 5px; border: 1px solid #85818f; border-radius: 50%; }
#store-cart .cart-edition-choice { display: grid; gap: 7px; margin: 22px 0 18px; }
#store-cart .cart-edition-choice label { font-size: 12px; font-weight: 600; color: #63646d; }
#store-cart select { width: 100%; min-width: 0; min-height: 44px; padding: 10px 32px 10px 12px; font: inherit; font-size: 12px; border: 1px solid #dcdce1; border-radius: 10px; background-color: #fff; color: var(--cart-ink); }
#store-cart select:disabled { background-color: #f8f8f7; color: #74757d; opacity: 1; }
#store-cart .cart-quantity { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; margin: 0; font-size: 12px; }
#store-cart .cart-quantity > .cart-stepper { display: flex; margin: 0; gap: 0; padding: 2px; border: 1px solid #dcdce1; border-radius: 12px; }
#store-cart .cart-stepper button:not(.cart-remove) { width: 44px; height: 44px; padding: 0; border: 0; border-radius: 8px; background: transparent; font-size: 21px; cursor: pointer; }
#store-cart .cart-stepper button:hover:enabled { background: #f0edf7; }
#store-cart .cart-stepper output { display: grid; place-items: center; min-width: 25px; padding: 0 3px; font-size: 13px; font-variant-numeric: tabular-nums; }
#store-cart .cart-stepper button:disabled { opacity: .3; cursor: not-allowed; }
#store-cart .cart-remove { grid-column: 2; justify-self: end; min-width: 44px; min-height: 44px; padding: 8px 4px; margin-top: -6px; font-size: 12px; text-underline-offset: 3px; cursor: pointer; }
#store-cart .cart-summary { min-width: 0; align-self: start; padding: 22px; border: 1px solid #e9e7ed; border-radius: 16px; background: linear-gradient(155deg, #f6f4f9, #f9f9f6); }
#store-cart .cart-summary h3 { margin: 0 0 26px; font-size: 13px; font-weight: 600; letter-spacing: -.02em; }
#store-cart .cart-unit { display: flex; justify-content: space-between; gap: 10px; color: #6c6c77; font-size: 12px; }
#store-cart .cart-unit > :last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
#store-cart .cart-total { display: block; border-top: 1px solid #dedce4; padding: 19px 0 0; margin: 18px 0 15px; }
#store-cart .cart-total > span { display: block; margin-bottom: 2px; font-size: 12px; color: #686773; }
#store-cart .cart-total strong { display: block; font-size: 34px; font-weight: 650; line-height: 1.4; font-variant-numeric: tabular-nums; white-space: nowrap; letter-spacing: -.055em; }
#store-cart .cart-explanation { margin: 0; font-size: 12px; line-height: 1.7; color: #686873; }
#store-cart .cart-notice { margin-top: 17px; }
#store-cart .cart-notice:has(.cart-message:empty):has(.cart-retry[hidden]) { display: none; }
#store-cart .cart-message { margin: 0; font-size: 12px; line-height: 1.6; color: #8a6034; }
#store-cart .cart-retry { min-height: 44px; margin-top: 4px; padding: 7px 0; border: 0; background: none; font: inherit; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; color: #625377; cursor: pointer; }
#store-cart .cart-replace { margin: 0 0 20px; padding: 14px; border: 1px solid #ded6eb; border-radius: 11px; background: #f6f2fc; }
#store-cart .cart-replace p { margin: 0 0 10px; font-size: 12px; line-height: 1.6; }
#store-cart .cart-replace > div { gap: 7px; }
#store-cart .cart-replace .button { min-height: 44px; padding: 10px 12px; border-radius: 8px; font-size: 12px; }
#store-cart .cart-storage { margin: 0 28px 16px; padding: 12px 14px; border-radius: 10px; background: #fff6e8; color: #86612d; font-size: 12px; }
#store-cart .cart-footer { position: sticky; bottom: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 28px; border-top: 1px solid var(--cart-line); background: #ffffffed; backdrop-filter: blur(14px); }
#store-cart .cart-continue { margin: 0; min-height: 44px; padding: 8px 0; font-size: 12px; text-decoration: none; cursor: pointer; }
#store-cart .cart-checkout { width: auto; margin: 0; min-height: 48px; padding: 13px 22px; border-radius: 11px; background: #292830; font-size: 12px; font-weight: 600; white-space: normal; text-align: center; }
#store-cart .button:disabled { background: #eae9ed; border-color: #eae9ed; color: #8c8a93; cursor: not-allowed; }
#store-cart .cart-assistance { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; padding: 0 24px 18px; font-size: 12px; color: #94929b; }
#store-cart .cart-assistance a { color: #6a6873; text-decoration: none; text-underline-offset: 3px; }
#store-cart .cart-assistance a:hover { text-decoration: underline; }
#store-cart .cart-empty { padding: 20px 30px 38px; text-align: center; }
#store-cart .cart-empty-symbol { display: grid; place-items: center; width: 84px; height: 84px; margin: 0 auto 22px; border: 1px solid #e5e0ed; border-radius: 26px; background: radial-gradient(circle at 20% 15%, #fff, #eeebf4); transform: rotate(-5deg); }
#store-cart .cart-empty-symbol svg { width: 48px; height: 48px; stroke: #898093; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
#store-cart .cart-empty-spark { stroke: #b0a3c4; }
#store-cart .cart-empty h3 { margin: 0 0 8px; font-size: 22px; font-weight: 600; letter-spacing: -.04em; }
#store-cart .cart-empty p { margin: 0 auto 24px; max-width: 38ch; font-size: 13px; line-height: 1.7; color: var(--cart-muted); }
#store-cart .cart-empty .button { min-height: 48px; padding: 13px 24px; border-radius: 11px; font-size: 12px; }
#store-cart :is(button, select, a):focus-visible { outline: 3px solid #a494c9; outline-offset: 3px; }
@media (max-width: 620px) {
  #store-cart { width: calc(100% - 20px); max-height: calc(100dvh - 20px); border-radius: 20px; }
  #store-cart .cart-heading { padding: 16px 18px 20px; }
  #store-cart .cart-heading h2 { font-size: 23px; }
  #store-cart .cart-layout { grid-template-columns: minmax(0, 1fr); margin: 0 18px; }
  #store-cart .cart-product-panel { padding: 0 0 18px; }
  #store-cart .cart-line img { width: 56px; height: 56px; }
  #store-cart .cart-facts { gap: 9px; margin: 20px 0; }
  #store-cart .cart-edition-choice { margin: 16px 0; }
  #store-cart .cart-quantity { align-items: center; }
  #store-cart .cart-remove { margin-top: -7px; }
  #store-cart .cart-summary { padding: 18px; margin-bottom: 18px; }
  #store-cart .cart-summary h3 { margin-bottom: 17px; }
  #store-cart .cart-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 14px; }
  #store-cart .cart-total strong { font-size: 30px; }
  #store-cart .cart-footer { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 14px 18px 8px; }
  #store-cart .cart-checkout { grid-row: 1; width: 100%; }
  #store-cart .cart-continue { justify-self: center; }
  #store-cart .cart-assistance { padding-bottom: 16px; }
  #store-cart .cart-storage { margin-inline: 18px; }
  #store-cart .cart-empty { padding: 15px 22px 30px; }
}
@media (prefers-reduced-motion: no-preference) {
  #store-cart[open] { animation: cart-enter 180ms ease-out; }
  #store-cart button, #store-cart select { transition: background-color 140ms, border-color 140ms; }
  @keyframes cart-enter { from { opacity: 0; translate: 0 7px; } to { opacity: 1; translate: 0 0; } }
}
