.action-modal-overlay {
    position: fixed;
    z-index: 9999;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, .62);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, visibility .2s ease;
}

.action-modal-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

.action-modal {
    position: relative;
    width: min(100%, 460px);
    padding: 32px 30px 28px;
    border: 1px solid #e5eaf1;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 80px rgba(15, 23, 42, .25);
    text-align: center;
    transform: translateY(12px) scale(.97);
    transition: transform .2s ease;
}

.action-modal-overlay.is-visible .action-modal {
    transform: translateY(0) scale(1);
}

.action-modal-close {
    position: absolute;
    top: 12px;
    right: 15px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #78869b;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
}

.action-modal-close:hover {
    background: #f1f4f8;
    color: #162033;
}

.action-modal-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin: 0 auto 17px;
    border-radius: 50%;
    font-size: 29px;
    font-weight: 900;
}

.action-modal-icon.is-warning {
    background: #fff4d6;
    color: #a15c00;
}

.action-modal-icon.is-danger {
    background: #fff0ef;
    color: #b42318;
}

.action-modal h2 {
    margin: 0 0 10px;
    color: #162033;
    font-size: 22px;
}

.action-modal p {
    margin: 0 auto;
    max-width: 370px;
    color: #65748a;
    font-size: 14px;
    line-height: 1.6;
}

.action-modal-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 25px;
}

.action-modal-buttons .btn {
    min-width: 135px;
}

.action-modal-confirm.is-warning {
    border-color: #d8b45b;
    background: #d99419;
    color: #fff;
}

.action-modal-confirm.is-danger {
    border-color: #b42318;
    background: #b42318;
    color: #fff;
}

.action-modal-confirm:hover {
    filter: brightness(.93);
    color: #fff;
}

@media (max-width: 520px) {
    .action-modal {
        padding: 30px 20px 22px;
    }

    .action-modal-buttons {
        flex-direction: column-reverse;
    }

    .action-modal-buttons .btn {
        width: 100%;
    }
}
