/* Confirmation modal (web/js/sx-cart.js, window.sxConfirm). Uses the shared tokens; no Tailwind utilities, so it works
   without a bundle rebuild and does not depend on which utilities the scan happened to find. */
.sx-modal {
    position: fixed; inset: 0; z-index: 100002;
    display: flex; align-items: center; justify-content: center;
    padding: 16px; background: rgb(15 18 20 / .55);
    animation: sx-modal-fade .12s ease-out;
}
.sx-modal__panel {
    width: 100%; max-width: 440px; max-height: calc(100vh - 32px); overflow: auto;
    padding: 22px; border-radius: var(--radius-card, 12px);
    background: #fff; color: var(--color-ink, #1f2023);
    box-shadow: 0 18px 50px rgb(0 0 0 / .3);
    animation: sx-modal-pop .14s ease-out;
}
.sx-modal__panel:focus { outline: none; }
.sx-modal__title { margin: 0 0 6px; font-size: 20px; line-height: 1.25; font-family: var(--font-heading, inherit); text-transform: uppercase; }
.sx-modal__text { margin: 0 0 16px; font-size: 15px; color: var(--color-ink-muted, #4a5357); }
.sx-modal__item {
    display: flex; gap: 14px; align-items: center; margin: 0 0 18px; padding: 12px;
    border: 1px solid var(--color-line, #dfe3e4); border-radius: var(--radius-input, 8px); background: #f7f8f8;
}
.sx-modal__thumb { flex: none; width: 64px; height: 64px; object-fit: contain; border-radius: 6px; background: #fff; }
.sx-modal__info { min-width: 0; }
.sx-modal__info p { margin: 0; }
.sx-modal__line { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--color-ink-subtle, #6b7378); }
.sx-modal__name { font-size: 15px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.sx-modal__meta { margin-top: 2px !important; font-size: 13px; color: var(--color-ink-muted, #4a5357); }
.sx-modal__error { margin: -6px 0 14px; font-size: 14px; font-weight: 700; color: var(--color-error, #b00020); }
.sx-modal__actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.sx-modal__btn { min-height: 44px; min-width: 110px; }
.sx-modal__btn:disabled { opacity: .7; cursor: progress; }
.sx-modal__danger {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 0 18px; border: 2px solid var(--color-error, #b00020); border-radius: var(--radius-button, 10px);
    background: var(--color-error, #b00020); color: #fff; font-weight: 700; cursor: pointer;
}
.sx-modal__danger:hover:not(:disabled) { filter: brightness(.92); }
.sx-modal__danger:focus-visible, .sx-modal__btn:focus-visible { outline: 3px solid var(--color-cta, #1a73e8); outline-offset: 2px; }
.sx-modal__btn.is-busy::before {
    content: ""; width: 14px; height: 14px; border: 2px solid currentColor; border-top-color: transparent;
    border-radius: 9999px; animation: sx-modal-spin .7s linear infinite;
}
@keyframes sx-modal-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes sx-modal-pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes sx-modal-spin { to { transform: rotate(360deg); } }
@media (max-width: 480px) {
    .sx-modal { align-items: flex-end; padding: 0; }
    .sx-modal__panel { max-width: none; border-radius: var(--radius-card, 12px) var(--radius-card, 12px) 0 0; }
    .sx-modal__actions { flex-direction: column-reverse; }
    .sx-modal__btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .sx-modal, .sx-modal__panel, .sx-modal__btn.is-busy::before { animation: none; } }
