﻿/* Ensures the overlay starts hidden */
.mks-confirm.hidden {
    display: none;
}

/* --- Optional: nice, lightweight styling --- */
.mks-confirm {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    font-family: 'Rubik', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.mks-confirm__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(9, 15, 27, 0.55);
    backdrop-filter: blur(2px);
    z-index: 0;
}


.mks-confirm__dialog {
    position: relative;
    z-index: 1; /* ensure above backdrop */
    width: min(520px, 92vw);
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
    padding: 20px 20px 16px;
    opacity: 0;
    transform: translateY(8px) scale(0.98);
    transition: opacity 180ms ease-out, transform 180ms ease-out;
}

/* when modal is open, reveal dialog */
.mks-confirm.open .mks-confirm__dialog {
    opacity: 1;
    transform: translateY(0) scale(1);
}

@@keyframes mks-pop {
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.mks-confirm__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.mks-confirm__icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    font-weight: 800;
    background: linear-gradient(180deg,#eaf3ff,#d9ebff);
    color: #0b65d8;
}

.mks-confirm__header h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    color: #0a1633;
}

.mks-confirm__body {
    font-size: 15px;
    line-height: 1.55;
    color: #263238;
    margin: 8px 0 16px;
}

.mks-confirm__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.btn-primary, .btn-outline {
    font-size: 14px;
    padding: 10px 16px;
    border-radius: 10px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform 80ms ease, box-shadow 120ms ease, background 120ms ease, color 120ms ease;
}

.btn-primary {
    background: #0b65d8;
    color: #fff;
    box-shadow: 0 6px 14px rgba(11,101,216,.25);
}

    .btn-primary:hover {
        transform: translateY(-1px);
        box-shadow: 0 9px 18px rgba(11,101,216,.28);
    }

.btn-outline {
    background: #fff;
    color: #0b1736;
    border-color: #cfd8e3;
}

    .btn-outline:hover {
        background: #f6f8fc;
    }

.submit.blue[disabled] {
    opacity: .6;
    cursor: not-allowed;
}
