.feedback-modal[hidden] {
    display: none
}

.feedback-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: grid;
    place-items: center;
    padding: 20px
}

.feedback-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 28, 43, .62);
    backdrop-filter: blur(4px);
    animation: feedback-fade .18s ease-out
}

.feedback-dialog {
    position: relative;
    width: min(440px, 100%);
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(7, 31, 48, .28);
    padding: 28px;
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 18px;
    animation: feedback-enter .22s ease-out
}

.feedback-icon {
    width: 54px;
    height: 54px;
    border-radius: 17px;
    display: grid;
    place-items: center;
    color: #176497;
    background: #e9f5fc;
    font-size: 25px
}

.feedback-modal[data-tipo="sucesso"] .feedback-icon {
    color: #16845b;
    background: #e8f7f0
}

.feedback-modal[data-tipo="erro"] .feedback-icon,
.feedback-modal[data-tipo="confirmar"] .feedback-icon {
    color: #b8552b;
    background: #fff0e9
}

.feedback-copy {
    padding-right: 18px
}

.feedback-copy h2 {
    color: #123f65;
    font-size: 20px;
    line-height: 1.2;
    margin: 2px 0 8px;
    font-weight: 800
}

.feedback-copy p {
    color: #657783;
    font-size: 14px;
    line-height: 1.55;
    margin: 0;
    white-space: pre-line
}

.feedback-close {
    position: absolute;
    right: 16px;
    top: 15px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #7c8c96
}

.feedback-close:hover {
    background: #eef3f6;
    color: #123f65
}

.feedback-actions {
    grid-column: 1/-1;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 5px
}

.feedback-actions button {
    min-width: 105px;
    min-height: 43px;
    border-radius: 12px;
    padding: 0 18px;
    font-weight: 750;
    border: 0
}

.feedback-cancel {
    color: #405766;
    background: #eef3f6
}

.feedback-confirm {
    color: #fff;
    background: #176497;
    box-shadow: 0 7px 18px rgba(23, 100, 151, .2)
}

.feedback-confirm.danger {
    background: #b8552b;
    box-shadow: 0 7px 18px rgba(184, 85, 43, .2)
}

.feedback-actions button:focus-visible,
.feedback-close:focus-visible {
    outline: 3px solid rgba(62, 139, 204, .35);
    outline-offset: 2px
}

body.feedback-modal-open {
    overflow: hidden
}

@keyframes feedback-fade {
    from {
        opacity: 0
    }
}

@keyframes feedback-enter {
    from {
        opacity: 0;
        transform: translateY(12px) scale(.98)
    }
}

@media(max-width:520px) {
    .feedback-dialog {
        grid-template-columns: 46px 1fr;
        padding: 22px;
        border-radius: 18px
    }

    .feedback-icon {
        width: 46px;
        height: 46px
    }

    .feedback-actions {
        flex-direction: column-reverse
    }

    .feedback-actions button {
        width: 100%
    }
}

@media(prefers-reduced-motion:reduce) {

    .feedback-modal-backdrop,
    .feedback-dialog {
        animation: none
    }
}