/* the cart page: a full-screen layer on the site's paper, the items beside the payment details */
.st-cart { min-height: 100dvh; background: var(--st-page); display: flex; flex-direction: column; }
.st-cart__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-block-end: 1px solid var(--st-line); }
.st-crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--st-muted); }
.st-crumbs li { display: inline-flex; align-items: center; gap: 6px; }
.st-crumbs [aria-current] { color: var(--sage-900); font-weight: 600; text-decoration: underline; text-decoration-color: var(--st-accent); text-underline-offset: 6px; }
.st-cart__grid { width: 100%; max-width: 1180px; margin-inline: auto; padding: 16px 16px 40px; display: grid; gap: 16px; align-items: start; align-content: start; flex: 1; }
.st-pay { padding: 20px; border: 1px solid var(--st-line); border-radius: 20px; background: #fff; display: grid; gap: 14px; }
.st-fold { border-block-end: 1px solid var(--st-line); padding-block-end: 10px; }
.st-fold summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 40px; cursor: pointer; list-style: none; font-size: 14px; }
.st-fold summary::-webkit-details-marker { display: none; }
.st-fold[open] summary .st-i { transform: rotate(180deg); }
.st-coupon { display: flex; gap: 8px; padding-block-start: 8px; }
.st-coupon .st-btn { min-height: 44px; padding-inline: 18px; }
.st-sums { display: grid; gap: 8px; font-size: 14px; }
.st-sums div { display: flex; justify-content: space-between; gap: 12px; }
.st-sums dd { font-variant-numeric: tabular-nums; }
.st-sums__strong { font-weight: 700; padding-block-start: 8px; border-block-start: 1px solid var(--st-line); }
.st-sums__strong + .st-sums__strong { border: 0; padding: 0; }
.st-pay__actions { display: flex; flex-direction: row-reverse; gap: 10px; }
[dir="rtl"] .st-pay__actions { flex-direction: row; }
.st-pay__actions .st-btn { flex: 1; padding-inline: 12px; }
.st-items { display: grid; gap: 12px; }
.st-item { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: start; padding: 14px; border: 1px solid var(--st-line); border-radius: 20px; background: #fff; box-shadow: var(--shadow-soft); }
.st-item:not(:has(.st-item__img)) { grid-template-columns: 1fr auto; }
.st-item__img { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; }
.st-item__name { font-weight: 700; }
.st-item__chip, .st-item__meta { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-soft); margin-block-start: 4px; }
.st-item__chip { width: fit-content; padding: 2px 8px; border-radius: 6px; background: var(--st-soft); }
.st-item__chip .st-i, .st-item__meta .st-i { width: 15px; height: 15px; color: var(--st-muted); }
.st-item__side { display: grid; justify-items: end; gap: 10px; align-self: stretch; grid-template-rows: auto 1fr; }
.st-item__price { font-weight: 600; align-self: end; }
.st-item__side .st-icon-btn { color: var(--st-ink); }
@media (min-width: 900px) {
  .st-cart__grid { grid-template-columns: minmax(320px, 440px) minmax(0, 1fr); gap: 24px; padding-block-start: 28px; }
  .st-cart__grid .st-pay { position: sticky; top: 16px; }
}

/* sign-in dialog: centred, one field at a time */
.st-dialog { width: min(420px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 28px 24px 24px; border: 0; border-radius: 18px; background: #fff; color: var(--st-ink); box-shadow: 0 20px 60px rgb(0 0 0 / 0.25); overflow: auto; margin: auto; }
.st-dialog::backdrop { background: rgb(0 0 0 / 0.45); }
.st-dialog[open] { animation: st-pop 180ms var(--st-ease); }
@keyframes st-pop { from { opacity: 0; transform: scale(0.97); } }
@media (prefers-reduced-motion: reduce) { .st-dialog[open] { animation: none; } }
.st-dialog__close { position: absolute; inset-block-start: 10px; inset-inline-start: 10px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; }
.st-dialog__close:hover { background: var(--st-soft); }
.st-dialog form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; padding-block-start: 14px; }
.st-dialog form > *, .st-dialog [data-phone-field] { min-width: 0; max-width: 100%; }
.st-dialog { overflow-x: hidden; }
.st-dialog .rk-phone { width: 100%; }
.st-dialog .st-h2 { font-size: 18px; text-align: center; }
.st-dialog .st-muted { font-size: 13px; text-align: center; margin-block-end: 10px; }
.st-dialog .st-label { margin-block-start: 8px; }
.st-otp { text-align: center; letter-spacing: 0.5em; font-size: 22px; font-weight: 600; }
.st-dialog .st-error { text-align: center; }
.st-body { --rk-phone-border: var(--sage-300); --rk-phone-ring: var(--st-accent); }
