/* Modal used instead of the browser alert() (see public/js/rda-alert.js) */
.rda-alert-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(11, 49, 78, 0.55);
}

.rda-alert-overlay.is-open {
    display: flex;
}

.rda-alert-box {
    width: 100%;
    max-width: 420px;
    padding: 28px 24px 22px;
    text-align: center;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    animation: rda-alert-in 0.18s ease-out;
}

.rda-alert-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    font-size: 30px;
    font-weight: 700;
    line-height: 56px;
    color: #fff;
    border-radius: 50%;
}

.rda-alert-icon.is-success { background: #2e7d32; }
.rda-alert-icon.is-error { background: #c62828; }
.rda-alert-icon.is-warning { background: #ed6c02; }
.rda-alert-icon.is-info { background: #00478f; }

.rda-alert-text {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.5;
    color: #0b314e;
    white-space: pre-line;
    word-wrap: break-word;
}

.rda-alert-ok {
    min-width: 110px;
    padding: 9px 28px;
    font-size: 15px;
    color: #fff;
    cursor: pointer;
    background: #0b314e;
    border: 0;
    border-radius: 12px;
}

.rda-alert-ok:hover,
.rda-alert-ok:focus {
    background: #00478f;
    outline: none;
}

@keyframes rda-alert-in {
    from { opacity: 0; transform: translateY(-12px) scale(0.96); }
    to { opacity: 1; transform: none; }
}
