/* Shared SweetAlert presentation. The branded support dialogs keep their own design.
   Only presentation changes: native buttons, widths, inputs and result promises stay intact. */
.swal2-container:has(> .swal2-popup:not(.cd-video-branded)) { z-index: 2147483000 !important; }
body .swal2-container .swal2-popup:not(.cd-video-branded) {
    --proc-swal-surface: var(--v2-surface, #fff);
    --proc-swal-ink: var(--v2-ink, #252a32);
    --proc-swal-muted: var(--v2-muted, #626d7b);
    --proc-swal-line: color-mix(in srgb, var(--v2-accent-light, #2196f3) 65%, var(--v2-line, #d8dde3));
    --proc-swal-action: var(--v2-accent, #1472af); --proc-swal-on-action: var(--v2-on-accent, #fff);
    grid-template-columns: minmax(0, 1fr); column-gap: 16px;
    max-width: 100%; padding: 22px 20px 16px;
    border: 1px solid var(--proc-swal-line) !important; border-radius: 14px !important;
    background: var(--proc-swal-surface) !important; color: var(--proc-swal-ink) !important;
    box-shadow: 0 12px 36px #0000002e; font-family: inherit; font-size: 14px;
}
body .swal2-popup:not(.cd-video-branded) > * { grid-column: 1 / -1; min-width: 0; }
body .swal2-popup:not(.cd-video-branded):is(.swal2-icon-success,.swal2-icon-error,.swal2-icon-warning,.swal2-icon-info,.swal2-icon-question) { grid-template-columns: 48px minmax(0, 1fr); }
body .swal2-popup:not(.cd-video-branded).swal2-icon-success { --proc-swal-action: #527c26; --proc-swal-on-action: #fff; }
body .swal2-popup:not(.cd-video-branded).swal2-icon-error { --proc-swal-action: #d5393a; --proc-swal-on-action: #fff; }
body .swal2-popup:not(.cd-video-branded).swal2-icon-warning { --proc-swal-action: #f2c04e; --proc-swal-on-action: #332609; }
body .swal2-popup:not(.cd-video-branded) > .swal2-title {
    grid-row: 1; padding: 0; margin: 0; align-self: end;
    color: var(--proc-swal-ink); font-size: 16px; line-height: 1.5; font-weight: 600; text-align: left;
}
body .swal2-popup:not(.cd-video-branded) > .swal2-html-container {
    grid-row: 2; margin: 6px 0 0; padding: 0; align-self: start;
    color: var(--proc-swal-muted); font-size: 14px; line-height: 1.6; text-align: left; overflow-wrap: anywhere;
}
body .swal2-popup:not(.cd-video-branded):is(.swal2-icon-success,.swal2-icon-error,.swal2-icon-warning,.swal2-icon-info,.swal2-icon-question) > :is(.swal2-title,.swal2-html-container) { grid-column: 2; }
body .swal2-popup:not(.cd-video-branded):has(> .swal2-title[style*="display: none"]) > .swal2-html-container {
    grid-row: 1 / 3; align-self: center; margin: 0; color: var(--proc-swal-ink); font-weight: 600;
}
body .swal2-popup:not(.cd-video-branded):has(> .swal2-html-container[style*="display: none"]) > .swal2-title { grid-row: 1 / 3; align-self: center; }
body .swal2-popup:not(.cd-video-branded):has(> .swal2-close:not([style*="display: none"])) > :is(.swal2-title,.swal2-html-container) { padding-right: 26px; }
body .swal2-popup:not(.cd-video-branded) > .swal2-icon {
    --proc-swal-color: #1472af; --proc-swal-disc: #dff1fc;
    grid-column: 1; grid-row: 1 / 3; align-self: center;
    width: 48px; height: 48px; min-width: 48px; margin: 0; border: 0;
    border-radius: 50%; background: var(--proc-swal-disc); color: var(--proc-swal-color); animation: none;
}
body .swal2-popup:not(.cd-video-branded) > .swal2-icon.swal2-success {
    --proc-swal-color: #357b18; --proc-swal-disc: #e4f2dc;
    --proc-swal-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 12 4.5 4.5L19 7' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
body .swal2-popup:not(.cd-video-branded) > .swal2-icon.swal2-error {
    --proc-swal-color: #b52c33; --proc-swal-disc: #fbe3e4;
    --proc-swal-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m7 7 10 10M17 7 7 17' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E");
}
body .swal2-popup:not(.cd-video-branded) > .swal2-icon.swal2-warning {
    --proc-swal-color: #8a5600; --proc-swal-disc: #fff0cb;
    --proc-swal-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v9' stroke='black' stroke-width='2.6' stroke-linecap='round'/%3E%3Ccircle cx='12' cy='19' r='1.5'/%3E%3C/svg%3E");
}
body[data-pro-mode="dark"] .swal2-popup:not(.cd-video-branded) > .swal2-success { --proc-swal-color: #94e177; --proc-swal-disc: #24481b; }
body[data-pro-mode="dark"] .swal2-popup:not(.cd-video-branded) > .swal2-error { --proc-swal-color: #ff9299; --proc-swal-disc: #54272d; }
body[data-pro-mode="dark"] .swal2-popup:not(.cd-video-branded) > .swal2-warning { --proc-swal-color: #ffd36d; --proc-swal-disc: #51401d; }
body[data-pro-mode="dark"] .swal2-popup:not(.cd-video-branded) > :is(.swal2-info,.swal2-question) { --proc-swal-color: #80cfff; --proc-swal-disc: #183f57; }
body .swal2-popup:not(.cd-video-branded) > .swal2-icon:is(.swal2-success,.swal2-error,.swal2-warning) > * { display: none !important; }
body .swal2-popup:not(.cd-video-branded) > .swal2-icon:is(.swal2-success,.swal2-error,.swal2-warning)::after {
    content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    width: 24px; height: 24px; background: var(--proc-swal-color); mask: var(--proc-swal-icon) center / contain no-repeat;
}
body .swal2-popup:not(.cd-video-branded) .swal2-icon-content { font-size: 30px; }
body .swal2-popup:not(.cd-video-branded) > .swal2-actions {
    width: 100%; margin: 18px 0 0; padding: 14px 0 0; gap: 8px;
    border-top: 1px solid var(--v2-line, #d8dde3); justify-content: flex-end;
}
body .swal2-popup:not(.cd-video-branded) > .swal2-actions > :is(.swal2-confirm,.swal2-deny,.swal2-cancel) {
    margin: 0; min-width: 76px; min-height: 36px; height: auto; padding: 8px 16px !important;
    border: 1px solid var(--proc-swal-line) !important; border-radius: 8px !important;
    background: var(--proc-swal-surface) !important; color: var(--proc-swal-ink) !important;
    box-shadow: none !important; font-family: inherit; font-size: 13px !important; font-weight: 600; line-height: 1.4 !important;
    white-space: normal; overflow-wrap: anywhere; max-width: 100%; transition: filter .15s;
}
body .swal2-popup:not(.cd-video-branded) > .swal2-actions > .swal2-confirm {
    border-color: var(--proc-swal-action) !important; background: var(--proc-swal-action) !important; color: var(--proc-swal-on-action) !important;
}
/* Explicit destructive/positive actions retain their meaning, regardless of message icon. */
body .swal2-popup:not(.cd-video-branded) > .swal2-actions > .swal2-confirm.btn-danger { background: #d5393a !important; border-color: #d5393a !important; color: #fff !important; }
body .swal2-popup:not(.cd-video-branded) > .swal2-actions > .swal2-confirm.btn-success { background: #527c26 !important; border-color: #527c26 !important; color: #fff !important; }
body .swal2-popup:not(.cd-video-branded) > .swal2-actions > button:hover { filter: brightness(.93); }
body .swal2-popup:not(.cd-video-branded) > .swal2-actions > button:focus-visible { outline: 2px solid var(--v2-accent-ink, #1472af); outline-offset: 3px; }
body .swal2-popup:not(.cd-video-branded) > .swal2-actions > button:disabled { opacity: .5; cursor: default; }
body .swal2-popup:not(.cd-video-branded) > .swal2-close { position: absolute !important; top: 8px !important; right: 8px !important; margin: 0 !important; }
/* The theme's icon-only button display must not reveal a caller-disabled close control. */
body.pro-home-v2 .swal2-container .swal2-popup:not(.cd-video-branded) > .swal2-close[style*="display: none"] { display: none !important; }
body .swal2-popup:not(.cd-video-branded) > :is(.swal2-input,.swal2-textarea,.swal2-select,.swal2-file) {
    width: 100%; margin: 16px 0 0; background: var(--proc-swal-surface); color: var(--proc-swal-ink);
    border: 1px solid var(--proc-swal-line); border-radius: 8px; box-shadow: none; font-size: 14px;
}
body .swal2-popup:not(.cd-video-branded) > :is(.swal2-checkbox,.swal2-radio,.swal2-input-label) { margin: 16px 0 0; background: transparent; color: var(--proc-swal-ink); }
body .swal2-popup:not(.cd-video-branded) > .swal2-validation-message { margin: 12px 0 0; border-radius: 8px; background: color-mix(in srgb, #d5393a 12%, var(--proc-swal-surface)); color: var(--proc-swal-ink); font-size: 13px; }
body .swal2-popup:not(.cd-video-branded) > .swal2-footer { margin: 16px 0 0; padding: 12px 0 0; color: var(--proc-swal-muted); border-color: var(--v2-line, #d8dde3); font-size: 12px; }
body .swal2-popup:not(.cd-video-branded) .swal2-loader { border-color: var(--v2-accent, #1472af) transparent var(--v2-accent, #1472af) transparent; }
@media (max-width: 480px) {
    body .swal2-container .swal2-popup:not(.cd-video-branded) { padding: 20px 16px 14px; column-gap: 12px; border-radius: 12px !important; }
    body .swal2-popup:not(.cd-video-branded) > .swal2-actions > button { padding-inline: 12px !important; }
}
