﻿/* =========================================================
   BACKDROP
   ========================================================= */

.bonoko-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(2, 3, 6, 0.78);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    animation: backdropFade 0.18s ease-out;
}


/* =========================================================
   MODAL
   ========================================================= */

.bonoko-modal {
    position: relative;
    width: 100%;
    max-width: 430px;
    padding: 30px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: linear-gradient( 145deg, #171a21 0%, #101218 100% );
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
    animation: modalAppear 0.22s ease-out;
}


    /* detalhe de luz */

    .bonoko-modal::before {
        content: "";
        position: absolute;
        width: 190px;
        height: 190px;
        top: -110px;
        left: -70px;
        border-radius: 50%;
        background: rgba(255, 49, 88, 0.10);
        filter: blur(40px);
        pointer-events: none;
    }


/* =========================================================
   ÍCONE
   ========================================================= */

.confirmation-icon {
    position: relative;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 65, 96, 0.13);
    border-radius: 14px;
    background: rgba(255, 49, 88, 0.09);
    color: #ff526d;
}


    .confirmation-icon i {
        font-size: 20px;
    }


/* =========================================================
   FECHAR
   ========================================================= */

.modal-close {
    position: absolute;
    top: 17px;
    right: 17px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.035);
    color: #656b76;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}


    .modal-close:hover {
        background: rgba(255, 255, 255, 0.08);
        color: #ffffff;
        transform: rotate(4deg);
    }


/* =========================================================
   TEXTO
   ========================================================= */

.modal-content-area {
    position: relative;
}


.modal-eyebrow {
    display: block;
    margin-bottom: 6px;
    color: #ff526d;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1.7px;
}


.modal-content-area h2 {
    margin: 0 0 10px;
    color: #f0f1f4;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.4px;
}


.modal-description {
    color: #747a85;
    font-size: 11px;
    line-height: 1.65;
}


    /*
   Caso o ChildContent tenha p, div etc.
*/

    .modal-description p {
        margin: 0 0 6px;
    }


        .modal-description p:last-child {
            margin-bottom: 0;
        }


/* =========================================================
   BOTÕES
   ========================================================= */

.modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    margin-top: 27px;
}


.modal-button {
    min-height: 43px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border-radius: 9px;
    font-family: inherit;
    font-size: 10px;
    font-weight: 650;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}


/* CANCELAR */

.cancel-button {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.025);
    color: #858b96;
}


    .cancel-button:hover {
        border-color: rgba(255, 255, 255, 0.12);
        background: rgba(255, 255, 255, 0.06);
        color: #ffffff;
    }


/* CONFIRMAR */

.confirm-button {
    border: 1px solid transparent;
    background: linear-gradient( 135deg, #ff3158, #ff506b );
    color: #ffffff;
    box-shadow: 0 8px 22px rgba(255, 49, 88, 0.20);
}


    .confirm-button:hover {
        transform: translateY(-1px);
        box-shadow: 0 12px 27px rgba(255, 49, 88, 0.29);
    }


    .confirm-button:active {
        transform: translateY(0);
    }


/* =========================================================
   ANIMAÇÕES
   ========================================================= */

@keyframes backdropFade {

    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


@keyframes modalAppear {

    from {
        opacity: 0;
        transform: translateY(10px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 520px) {

    .bonoko-modal {
        max-width: 100%;
        padding: 25px 20px;
        border-radius: 15px;
    }


    .modal-actions {
        grid-template-columns: 1fr;
    }


    .confirmation-icon {
        width: 46px;
        height: 46px;
    }


    .modal-content-area h2 {
        font-size: 18px;
    }
}
