.aurum-confirm-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(2, 8, 18, .72);
    opacity: 0;
    visibility: hidden;

    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);

    transition:
        opacity .16s ease,
        visibility .16s ease;
}

.aurum-confirm-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.aurum-confirm-dialog {
    width: min(100%, 440px);
    overflow: hidden;

    color: #e8eef7;
    background:
        linear-gradient(
            180deg,
            #142238,
            #101b2d
        );

    border: 1px solid #365272;
    border-radius: 13px;

    box-shadow:
        0 28px 80px rgba(0, 0, 0, .48);

    transform: translateY(8px) scale(.975);

    transition: transform .16s ease;
}

.aurum-confirm-overlay.is-open
.aurum-confirm-dialog {
    transform: translateY(0) scale(1);
}

.aurum-confirm-header {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 18px 19px 14px;
}

.aurum-confirm-icon {
    display: inline-flex;
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;

    color: #ff8892;
    background: rgba(185, 39, 52, .18);
    border: 1px solid rgba(221, 67, 79, .32);
    border-radius: 10px;

    font-size: 20px;
    font-weight: 700;
}

.aurum-confirm-title {
    margin: 0;

    color: #f3f6fb;
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
}

.aurum-confirm-message {
    margin: 0;
    padding: 0 19px 19px;

    color: #aebdd0;
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 13.5px;
    line-height: 1.55;
    white-space: pre-line;
}

.aurum-confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 9px;

    padding: 14px 19px;

    background: rgba(7, 15, 27, .32);
    border-top: 1px solid rgba(73, 101, 137, .25);
}

.aurum-confirm-actions button {
    width: auto !important;
    min-width: 100px !important;
    min-height: 38px !important;
    margin: 0 !important;
    padding: 8px 15px !important;

    border-radius: 8px !important;
    box-shadow: none !important;

    font-family: "Segoe UI", Arial, sans-serif !important;
    font-size: 13px !important;
    font-weight: 650 !important;
}

.aurum-confirm-cancel {
    color: #dce5f0 !important;
    background: #21324a !important;
    border: 1px solid #3a516f !important;
}

.aurum-confirm-cancel:hover {
    color: #ffffff !important;
    background: #2a405e !important;
    border-color: #547499 !important;
    transform: none !important;
}

.aurum-confirm-submit {
    color: #ffffff !important;
    background: #2467c8 !important;
    border: 1px solid #3f80da !important;
}

.aurum-confirm-submit:hover {
    background: #2d75da !important;
    border-color: #5b94e5 !important;
    transform: none !important;
}

.aurum-confirm-submit.is-danger {
    background: #a72430 !important;
    border-color: #ce3f4b !important;
}

.aurum-confirm-submit.is-danger:hover {
    background: #bb2b37 !important;
    border-color: #e05762 !important;
}

body.aurum-confirm-open {
    overflow: hidden;
}

/* Light theme */

html[data-theme="light"] .aurum-confirm-overlay {
    background: rgba(27, 39, 56, .48);
}

html[data-theme="light"] .aurum-confirm-dialog {
    color: #172033;
    background: #ffffff;
    border-color: #cbd7e5;

    box-shadow:
        0 25px 70px rgba(32, 48, 69, .24);
}

html[data-theme="light"] .aurum-confirm-title {
    color: #172033;
}

html[data-theme="light"] .aurum-confirm-message {
    color: #5d6d82;
}

html[data-theme="light"] .aurum-confirm-actions {
    background: #f6f8fb;
    border-color: #dce4ee;
}

html[data-theme="light"] .aurum-confirm-cancel {
    color: #334155 !important;
    background: #ffffff !important;
    border-color: #c6d2e1 !important;
}

html[data-theme="light"] .aurum-confirm-cancel:hover {
    background: #edf2f7 !important;
    border-color: #aabacf !important;
}

@media (max-width: 520px) {
    .aurum-confirm-overlay {
        align-items: flex-end;
        padding: 12px;
    }

    .aurum-confirm-dialog {
        width: 100%;
    }

    .aurum-confirm-actions {
        flex-direction: column-reverse;
    }

    .aurum-confirm-actions button {
        width: 100% !important;
    }
}
