.sweet-alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sweet-alert-overlay-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}
.sweet-alert-modal {
    position: relative;
    background: var(--bg);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}
.sweet-alert-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
}
.sweet-alert-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
}
.sweet-alert-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text);
    font-size: 1.5rem;
    line-height: 1;
    transition: all 0.2s;
}
.sweet-alert-close:hover {
    background: var(--bg-light);
    color: var(--primary);
}
.sweet-alert-body {
    padding: 1.5rem;
}
.sweet-alert-icon {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-sizing: border-box;
}
.sweet-alert-icon-img {
    width: 68px;
    height: 68px;
    display: block;
    object-fit: contain;
    flex-shrink: 0;
}
.sweet-alert-warning .sweet-alert-icon {
    background: rgba(234, 88, 12, 0.1);
    border: 1px solid rgba(234, 88, 12, 0.28);
}
.sweet-alert-info .sweet-alert-icon {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.28);
}

/* ЭДО / Контур.Диадок: нейтральная подложка под иконку документа */
.sweet-alert-diadoc .sweet-alert-icon {
    border: 1px solid rgba(100, 116, 139, 0.35);
}
.sweet-alert-diadoc .sweet-alert-icon-img--diadoc {
    width: 44px;
    height: 44px;
    max-width: 44px;
    max-height: 44px;
    object-fit: contain;
}

/* Ошибка: отдельный вид; success / остальные — без лишних переопределений */
.sweet-alert-error .sweet-alert-icon {
    background: transparent;
    border: 4px solid rgba(248, 113, 113, 0.24);
    border-radius: 50%;
}
.sweet-alert-error .sweet-alert-icon-img {
    width: 32px;
    height: 32px;
}
.sweet-alert-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    text-align: center;
    margin-bottom: 0.75rem;
}
.sweet-alert-message {
    font-size: 0.95rem;
    color: var(--text-light);
    text-align: center;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    white-space: pre-line;
}
.sweet-alert-message a.account-table-link {
    color: var(--text, #4b5563);
    text-decoration: none;
    border-bottom: 1px dotted var(--text-light, #9ca3af);
}
.sweet-alert-message a.account-table-link:hover {
    color: var(--text, #4b5563);
    border-bottom-color: var(--text, #4b5563);
}

/* Как ссылки на /docs (.platform-docs__p a: --pd-link / --pd-link-hover из handbook.css) */
.sweet-alert-message a.sweet-alert-link--docs,
.swal2-popup .swal2-html-container a.sweet-alert-link--docs {
    color: #0066cc;
    text-decoration: none;
    border-bottom: none;
}
.sweet-alert-message a.sweet-alert-link--docs:hover,
.swal2-popup .swal2-html-container a.sweet-alert-link--docs:hover {
    color: #004499;
    text-decoration: underline;
}
.sweet-alert-loading .sweet-alert-message {
    white-space: normal;
}
.sweet-alert-loading-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 1rem;
    border: 3px solid rgba(59, 130, 246, 0.2);
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: sweet-alert-loading-spin 0.75s linear infinite;
}

@keyframes sweet-alert-loading-spin {
    to {
        transform: rotate(360deg);
    }
}

.sweet-alert-footer {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
}
.sweet-alert-btn {
    min-width: 100px;
    background: #ff6c37;
    color: #fff;
    padding: 9px 12px;
    font-size: 13px;
    cursor: pointer;
    border: none;
    text-transform: lowercase;
    outline: none;
    text-decoration: none;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 35px;
    box-sizing: border-box;
}
.sweet-alert-btn-cancel {
    background: #e5e7eb;
    color: #374151;
}
.sweet-alert-btn-cancel:hover {
    opacity: 0.8;
}
.sweet-alert-btn-confirm {
    background: #ea580c;
    color: #fff;
}
.sweet-alert-btn-confirm:hover {
    opacity: 0.8;
}

/* Ожидание оплаты сервисного сбора (корзина): спиннер и отложенный крестик */
@keyframes cart-service-fee-pending-spin {
    to {
        transform: rotate(360deg);
    }
}
.cart-service-fee-pending-spinner {
    width: 52px;
    height: 52px;
    margin: 0 auto 1rem;
    border: 3px solid rgba(33, 150, 243, 0.2);
    border-top-color: #2196f3;
    border-radius: 50%;
    animation: cart-service-fee-pending-spin 0.75s linear infinite;
    box-sizing: border-box;
}
#cart-service-fee-pending-overlay .cart-service-fee-pending-close {
    display: none !important;
}
#cart-service-fee-pending-overlay.cart-service-fee-pending-overlay--dismissible .cart-service-fee-pending-close {
    display: flex !important;
}
.cart-service-fee-pending-hint {
    font-size: 0.85rem;
    color: var(--text-light);
    text-align: center;
    margin: -0.25rem 0 0;
    line-height: 1.5;
}
