#korivelle-cart { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(100%, 420px); max-width: 100%; height: 100%; max-height: 100%; border: 0; padding: 20px; box-shadow: -8px 0 30px #0002; }
#korivelle-cart::backdrop { background: #0006; }
.kor-cart-head { display: flex; align-items: center; justify-content: space-between; }
.kor-cart-head button { border: 0; background: transparent; font-size: 26px; cursor: pointer; }
#kor-quantity { max-width: 7ch; padding: 8px; }
.kor-currency-note { font-size: 1.35rem; line-height: 1.5; }
#kor-consent { position: fixed; inset: auto 12px 12px; z-index: 9999; margin: auto; max-width: 480px; background: white; color: #222; padding: 12px 16px; border: 1px solid #ccc; border-radius: 8px; }
#kor-consent p { margin-top: 0; }
#kor-consent button { margin-right: 8px; padding: 6px 12px; cursor: pointer; }

#korivelle-cart { padding: 0; width: min(100%, 500px); height: 100%; height: 100dvh; background: #fff; color: #17181b; font-family: var(--font-body-family, system-ui); }
#korivelle-cart[open] { display: flex; flex-direction: column; }
#korivelle-cart [hidden] { display: none !important; }
body:has(#korivelle-cart[open]) { overflow: hidden; }
#korivelle-cart::backdrop { background: #20253588; }
.kor-cart-head { padding: 18px 22px; gap: 10px; }
.kor-cart-head h2 { font-size: clamp(22px, 4vw, 32px); font-weight: 750; margin: 0; letter-spacing: -.03em; }
.kor-cart-head button { width: 40px; height: 40px; line-height: 1; }
.kor-cart-reservation { background: #181a22; color: #fff; text-align: center; padding: 9px 15px; font-size: 14px; font-weight: 650; }
#kor-clock { font-variant-numeric: tabular-nums; }
.kor-cart-body { flex: 1 1 auto; padding: 22px; }
.kor-cart-item { display: grid; grid-template-columns: 88px minmax(0,1fr); gap: 16px; }
#kor-image { object-fit: cover; background: #f7f5f1; border-radius: 9px; }
.kor-item-heading { display: flex; gap: 6px; justify-content: space-between; align-items: start; }
.kor-item-heading h3 { margin: 0; font-size: clamp(15px, 4vw, 20px); font-weight: 750; }
.kor-item-heading button { background: transparent; border: 0; padding: 4px; cursor: pointer; color: inherit; }
#kor-color { margin: 3px 0 8px; font-size: 14px; }
.kor-item-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; color: #3c55ba; }
.kor-stepper { display: inline-flex; border: 1px solid #d3d5df; border-radius: 8px; overflow: hidden; background: #f7f8fc; color: #17181b; }
.kor-stepper > * { border: 0; color: inherit; background: none; text-align: center; min-height: 36px; font: inherit; }
.kor-stepper button { width: 36px; cursor: pointer; }
.kor-stepper button:disabled { opacity: .4; cursor: default; }
#kor-quantity { padding: 0; width: 42px; appearance: textfield; border-inline: 1px solid #d3d5df; border-radius: 0; }
#kor-quantity::-webkit-inner-spin-button { appearance: none; }
.kor-cart-footer { margin-top: auto; border-top: 1px solid #e0e2e9; padding: 16px 22px max(18px, env(safe-area-inset-bottom)); }
.kor-discount { display: flex; gap: 8px; margin: 0; }
.kor-discount input { flex: 1; min-width: 0; border: 1px solid #aeb3c2; padding: 0 12px; border-radius: 8px; font: inherit; }
.kor-discount button, #kor-checkout { border: 0; border-radius: 8px; background: #455fc8; color: white; font: inherit; font-weight: 750; cursor: pointer; padding: 11px 15px; }
.kor-discount button:hover, #kor-checkout:hover { background: #354fae; }
#kor-checkout { width: 100%; padding: 14px 10px; font-size: 18px; }
#kor-checkout:disabled { opacity: .65; cursor: wait; }
.kor-cart-shipping, .kor-cart-subtotal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 10px; margin: 12px 0; }
.kor-cart-shipping { color: #285841; background: #edf7f1; padding: 6px 9px; border-radius: 6px; font-size: 13px; }
.kor-cart-subtotal { font-size: 21px; }
.kor-cart-note { margin: 6px 0 0; font-size: 12px; }
.kor-cart-note:empty { display: none; }
.kor-cart-currency { text-align: center; color: #515564; }
.kor-payment-brands { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
@media (max-width: 420px) {
  .kor-cart-head, .kor-cart-body, .kor-cart-footer { padding-left: 15px; padding-right: 15px; }
  .kor-cart-item { grid-template-columns: 68px minmax(0,1fr); gap: 11px; }
  #kor-image { width: 68px; height: 68px; }
}

.kor-payment-brands {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 38px));
  gap: 7px;
  justify-content: center;
}
.kor-payment-brands svg { display: block; width: 100%; height: auto; }
