/* Stage 5: checkout and payment result only; no shared/admin selectors. */
.site-shell :is(.checkout-page, .payment-page) { min-width: 0; color: var(--st-text); overflow-wrap: anywhere; }
.site-shell .checkout-page .st-bc { font-size: 12px; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.site-shell .checkout-page #checkout-title { font-size: 26px; margin: 0 0 26px; font-weight: 800; line-height: 1.7; }
.site-shell .checkout-page .st-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; list-style: none; padding: 0 0 28px; margin: 0 0 28px; border-bottom: 1px solid var(--st-border); }
.site-shell .checkout-page .st-step { display: flex; justify-content: center; align-items: center; gap: 10px; padding: 14px; border: 1px solid var(--st-border); border-radius: 5px; background: var(--st-surface-2); color: var(--st-muted); font-size: 13px; }
.site-shell .checkout-page .st-step.active { background: var(--st-primary-soft); border-color: var(--st-primary-border); color: var(--st-primary); }
.site-shell .checkout-page .st-step__n { border: 0; border-radius: 5px; width: 28px; height: 28px; background: var(--st-surface); color: var(--st-muted); box-shadow: none; }
.site-shell .checkout-page :is(.st-step.done, .st-step.active) .st-step__n { background: var(--sf-mint); color: var(--sf-mint-ink); }
.site-shell .checkout-page .checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
.site-shell .checkout-page .checkout-layout > * { min-width: 0; }
.site-shell .checkout-page .st-stack { gap: 20px; }
.site-shell .checkout-page .st-card { min-width: 0; background: var(--st-surface); border: 1px solid var(--st-border); border-radius: 6px; box-shadow: none; backdrop-filter: none; }
.site-shell .checkout-page .st-card__head { display: flex; align-items: center; gap: 10px; margin: 0; padding: 20px 24px; font-size: 16px; font-weight: 800; border-bottom: 1px solid var(--st-border); background: transparent; }
.site-shell .checkout-page .st-card__head svg { color: var(--st-primary); }
.site-shell .checkout-page .st-card__pad { padding: 24px; }
.site-shell .checkout-page .checkout-customer { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.site-shell .checkout-page .checkout-customer > div { background: var(--st-surface-2); padding: 14px 16px; border-radius: 5px; }
.site-shell .checkout-page .st-promo { gap: 10px; margin-bottom: 0; }
.site-shell .checkout-page .st-promo .st-btn { flex-shrink: 0; min-height: 44px; }
.site-shell .checkout-page .st-promo__msg { line-height: 1.9; margin: 10px 0 0; }
.site-shell .checkout-page .st-promo__msg:empty { display: none; }
.site-shell .checkout-page .st-promo__msg.ok { color: var(--st-primary); }
.site-shell .checkout-page .st-itemform { padding: 20px; border-radius: 5px; border: 1px solid var(--st-border); background: var(--st-surface-2); }
.site-shell .checkout-page .st-itemform__head { gap: 14px; padding-bottom: 18px; margin-bottom: 20px; border-bottom: 1px solid var(--st-border); }
.site-shell .checkout-page .st-itemform__media { width: 60px; height: 60px; flex-basis: 60px; border-radius: 5px; background: var(--st-surface); }
.site-shell .checkout-page .st-img__ph { background: var(--st-surface); }
.site-shell .checkout-page .st-itemform__t { font-size: 14px; line-height: 1.9; }
.site-shell .checkout-page .st-itemform__s { font-size: 12px; }
.site-shell .checkout-page .checkout-fields { min-width: 0; padding: 0; margin: 0; border: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.site-shell .checkout-page .st-field { min-width: 0; margin: 0; }
.site-shell .checkout-page .st-field:has(textarea) { grid-column: 1 / -1; }
.site-shell .checkout-page .st-label { font-size: 13px; margin-bottom: 8px; }
.site-shell .checkout-page .st-help { font-size: 11px; line-height: 1.9; margin: 6px 0; }
.site-shell .checkout-page :is(.st-input, .st-select, .st-textarea) { min-width: 0; width: 100%; min-height: 44px; border-radius: 5px; background: var(--st-input-bg); border: 1px solid var(--st-input-border); color: var(--st-text); font-size: 14px; }
.site-shell .checkout-page .st-field > input + input { margin-top: 8px; }
.site-shell .checkout-page .st-textarea { min-height: 100px; resize: vertical; }
.site-shell .checkout-page [aria-invalid="true"] { border-color: var(--st-danger); }
.site-shell .checkout-page .st-field__error { display: block; color: var(--st-danger); margin-top: 6px; font-size: 12px; }
.site-shell .checkout-page .st-check { min-height: 44px; gap: 10px; }
.site-shell .checkout-page .st-check input { width: 18px; height: 18px; flex-shrink: 0; }
.site-shell .checkout-page .st-paycard { width: 100%; text-align: start; font-family: inherit; border: 1px solid var(--st-border); border-radius: 5px; background: var(--st-surface-2); color: var(--st-text); padding: 18px; gap: 14px; }
.site-shell .checkout-page .st-paycard.active { border-color: var(--st-primary); background: var(--st-primary-soft); box-shadow: inset 0 0 0 1px var(--st-primary); }
.site-shell .checkout-page .st-paycard__ic { border-radius: 5px; background: var(--st-surface); }
.site-shell .checkout-page :is(.st-paycard__t, .st-paycard__s) { display: block; }
.site-shell .checkout-page .st-paycard__radio { width: 18px; height: 18px; }
.site-shell .checkout-page .st-delivery-note { background: var(--st-surface-2); border-radius: 5px; padding: 16px; font-size: 12px; line-height: 2; }
.site-shell .checkout-page .checkout-summary { position: sticky; top: 20px; max-height: calc(100dvh - 40px); overflow-y: auto; scrollbar-width: thin; }
.site-shell .checkout-page #checkout-summary-title { font-size: 18px; margin: 0 0 20px; padding-bottom: 18px; border-bottom: 1px solid var(--st-border); }
.site-shell .checkout-page .checkout-lines { display: flex; flex-direction: column; gap: 12px; max-height: 230px; overflow-y: auto; scrollbar-width: thin; margin-bottom: 16px; padding: 12px; background: var(--st-surface-2); border-radius: 5px; }
.site-shell .checkout-page .checkout-line { align-items: start; gap: 12px; font-size: 12px; }
.site-shell .checkout-page .checkout-line > span:last-child { max-width: 48%; text-align: end; white-space: normal; }
.site-shell .checkout-page .st-sumrow { font-size: 13px; gap: 12px; padding: 10px 0; align-items: baseline; }
.site-shell .checkout-page .st-sumrow > span { min-width: 0; }
.site-shell .checkout-page .st-sumrow > span:last-child { max-width: 58%; text-align: end; flex-shrink: 0; }
.site-shell .checkout-page .st-sumrow.total { padding: 18px 12px; background: var(--st-surface-2); border-radius: 5px; border: 0; margin-top: 14px; font-size: 14px; }
.site-shell .checkout-page .checkout-pay { margin-top: 20px; white-space: normal; line-height: 1.9; }
.site-shell .checkout-page .st-alert { border-radius: 5px; font-size: 12px; line-height: 1.9; align-items: start; }
.site-shell .checkout-page .st-secure { font-size: 11px; text-align: center; }
.site-shell .checkout-page :is(.checkout-loading, .checkout-empty) { padding: 60px 24px; min-height: 300px; gap: 20px; border-radius: 6px; background: var(--st-surface-2); }
.site-shell .payment-page { max-width: 820px; margin: 24px auto 48px; }
.site-shell .payment-page .payment-result-card { padding: 56px 40px; border: 1px solid var(--st-border); background: var(--st-surface); border-radius: 6px; gap: 22px; }
.site-shell .payment-page .payment-result-icon { width: 88px; height: 88px; border-radius: 6px; box-shadow: none; }
.site-shell .payment-success .payment-result-icon { background: var(--sf-mint); color: var(--sf-mint-ink); }
.site-shell .payment-failure .payment-result-icon { background: var(--st-danger-soft); color: var(--st-danger); }
.site-shell .payment-page #payment-title { font-size: 26px; font-weight: 800; line-height: 1.8; margin: 0; }
.site-shell .payment-page .payment-result-message { max-width: 540px; margin: 0; font-size: 14px; line-height: 2.2; }
.site-shell .payment-page .payment-result-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 10px; }
.site-shell .payment-page .payment-result-actions .st-btn { min-height: 44px; white-space: normal; }
.site-shell .payment-page .payment-kyc-notice { max-width: 560px; text-align: start; border-radius: 5px; line-height: 2; margin: 0; }
@media (max-width: 1100px) {
    .site-shell .checkout-page .checkout-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; }
    .site-shell .checkout-page .checkout-fields { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1024px) {
    .site-shell .checkout-page .checkout-layout { grid-template-columns: minmax(0, 1fr); }
    .site-shell .checkout-page .checkout-summary { position: static; max-height: none; overflow: visible; }
}
@media (max-width: 600px) {
    .site-shell .checkout-page #checkout-title { font-size: 22px; }
    .site-shell .checkout-page .st-steps { gap: 8px; }
    .site-shell .checkout-page .st-step { flex-direction: column; padding: 10px 4px; gap: 8px; text-align: center; font-size: 11px; }
    .site-shell .checkout-page .st-card__head { font-size: 15px; padding: 16px; }
    .site-shell .checkout-page .st-card__pad { padding: 16px; }
    .site-shell .checkout-page .checkout-customer { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .site-shell .checkout-page .st-itemform { padding: 14px; }
    .site-shell .checkout-page .st-itemform__media { width: 48px; height: 48px; flex-basis: 48px; }
    .site-shell .checkout-page .st-paycard { padding: 14px; gap: 10px; }
    .site-shell .checkout-page .st-paycard__t { font-size: 13px; }
    .site-shell .checkout-page .st-paycard__s { font-size: 11px; }
    .site-shell .checkout-page .st-paycard__ic { width: 32px; height: 32px; flex-basis: 32px; }
    .site-shell .checkout-page .st-sumrow { font-size: 12px; }
    .site-shell .checkout-page .st-sumrow.total { font-size: 13px; }
    .site-shell .payment-page { margin: 8px auto 32px; }
    .site-shell .payment-page .payment-result-card { padding: 32px 20px; gap: 18px; }
    .site-shell .payment-page #payment-title { font-size: 22px; }
    .site-shell .payment-page .payment-result-message { font-size: 13px; }
    .site-shell .payment-page .payment-result-actions { width: 100%; flex-direction: column; }
}
