/* Reusable cart drawer. Override --commerce-cart-* on [data-commerce-cart]. */
[data-commerce-cart] {
  --commerce-cart-surface: #f7f5ef;
  --commerce-cart-ink: #202321;
  --commerce-cart-muted: #767970;
  --commerce-cart-line: #deded5;
  --commerce-cart-green: #43584a;
  --commerce-cart-green-dark: #293b30;
  --commerce-cart-shadow: 0 12px 60px rgb(0 0 0 / 12%);
  color: var(--commerce-cart-ink);
  font-family: inherit;
}
[data-commerce-cart] *, [data-commerce-cart] *::before, [data-commerce-cart] *::after { box-sizing: border-box; }
.commerce-cart-backdrop { position: fixed; inset: 0; z-index: 1090; background: rgb(23 26 23 / 38%); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.commerce-cart-backdrop.is-visible { opacity: 1; visibility: visible; }
.commerce-cart-panel { position: fixed; z-index: 1100; top: 0; right: 0; bottom: 0; display: flex; width: min(440px, 100vw); flex-direction: column; background: var(--commerce-cart-surface); box-shadow: -10px 0 40px rgb(0 0 0 / 8%); transform: translateX(102%); transition: transform .25s ease; }
.commerce-cart-panel.is-open { transform: translateX(0); }
.commerce-cart-head { display: flex; min-height: 72px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--commerce-cart-line); padding: 18px 25px; }
.commerce-cart-head h2 { margin: 0; font: 500 23px/1.3 Georgia, "Noto Serif TC", "Songti TC", serif; }
.commerce-cart-close { border: 0; background: transparent; font: inherit; font-size: 25px; line-height: 1; }
.commerce-cart-body { flex: 1; overflow: auto; padding: 23px 25px; }
.commerce-cart-empty { padding: 54px 8px; color: var(--commerce-cart-muted); text-align: center; }
.commerce-cart-line { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 15px; }
.commerce-cart-image { display: block; width: 92px; height: 114px; object-fit: cover; }
.commerce-cart-meta h3 { margin: 2px 0 4px; font: 500 18px/1.4 Georgia, "Noto Serif TC", "Songti TC", serif; }
.commerce-cart-meta p { margin: 0 0 9px; color: var(--commerce-cart-muted); font-size: 12px; }
.commerce-cart-price { font-size: 14px; font-variant-numeric: tabular-nums; }
.commerce-cart-controls { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.commerce-cart-quantity { display: flex; height: 34px; align-items: center; border: 1px solid #c9cbc2; }
.commerce-cart-quantity button { width: 30px; height: 32px; border: 0; background: transparent; font: inherit; font-size: 17px; }
.commerce-cart-quantity output { width: 26px; text-align: center; font-variant-numeric: tabular-nums; }
.commerce-cart-remove { border: 0; background: transparent; color: var(--commerce-cart-muted); font: inherit; font-size: 11px; text-decoration: underline; text-underline-offset: 3px; }
.commerce-cart-bottom { border-top: 1px solid var(--commerce-cart-line); padding: 20px 25px 23px; }
.commerce-cart-subtotal { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; font-size: 14px; }
.commerce-cart-subtotal output { font-size: 17px; font-variant-numeric: tabular-nums; }
.commerce-cart-shipping { margin: 0 0 17px; color: var(--commerce-cart-muted); font-size: 11px; }
.commerce-cart-checkout { width: 100%; height: 48px; border: 0; background: var(--commerce-cart-green); color: #fff; font: inherit; font-size: 13px; letter-spacing: .08em; }
.commerce-cart-checkout:hover { background: var(--commerce-cart-green-dark); }
.commerce-cart-disclaimer { margin: 11px 0 0; color: #8c7250; font-size: 10px; text-align: center; }
.commerce-cart-toast { position: fixed; z-index: 1110; bottom: 27px; left: 50%; max-width: calc(100vw - 32px); padding: 11px 17px; background: #252b26; color: #fff; font-size: 13px; opacity: 0; pointer-events: none; transform: translate(-50%, 18px); transition: opacity .2s, transform .2s; }
.commerce-cart-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.commerce-cart-notice-backdrop { position: fixed; z-index: 1120; inset: 0; display: none; place-items: center; padding: 20px; background: rgb(20 23 20 / 45%); }
.commerce-cart-notice-backdrop.is-open { display: grid; }
.commerce-cart-notice { width: min(410px, 100%); padding: 31px; background: var(--commerce-cart-surface); box-shadow: var(--commerce-cart-shadow); text-align: center; }
.commerce-cart-notice h2 { margin: 0 0 10px; font: 500 25px/1.35 Georgia, "Noto Serif TC", "Songti TC", serif; }
.commerce-cart-notice p { margin: 0 0 21px; color: #62665e; font-size: 14px; line-height: 1.7; }
.commerce-cart-notice-close { border: 0; padding: 11px 25px; background: var(--commerce-cart-green); color: #fff; font: inherit; }
@media (max-width: 480px) {
  .commerce-cart-head { padding-right: 20px; padding-left: 20px; }
  .commerce-cart-body { padding: 20px; }
  .commerce-cart-bottom { padding-right: 20px; padding-left: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .commerce-cart-backdrop, .commerce-cart-panel, .commerce-cart-toast { transition-duration: .01ms; }
}
