/*
Theme Name: Banco GP Child
Description: Minimal child theme for banco.wf on GeneratePress.
Author: Banco.wf
Template: generatepress
Version: 0.3.2
Text Domain: banco-wf
*/

.banco-modal[hidden] {
    display: none !important;
}

body.banco-modal-open {
    overflow: hidden;
}

.banco-modal {
    position: fixed;
    z-index: 100000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 1.25rem;
    overflow-y: auto;
    background: rgb(4 24 54 / 78%);
    opacity: 1;
}

.banco-modal__panel {
    width: min(100%, 38rem);
    max-height: calc(100dvh - 2.5rem);
    padding: clamp(1.5rem, 5vw, 2.5rem);
    overflow-y: auto;
    color: #0b2447;
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 1.5rem 4rem rgb(0 0 0 / 32%);
    transform: translateY(0);
}

.banco-modal__title {
    margin: 0 0 1rem;
    font-size: clamp(1.6rem, 5vw, 2.25rem);
    line-height: 1.15;
}

.banco-modal__content p {
    margin: 0 0 1rem;
}

.banco-modal__close {
    min-height: 2.75rem;
    margin-top: 0.5rem;
    padding: 0.7rem 1.25rem;
    color: #fff;
    font: inherit;
    font-weight: 700;
    background: #0b4a8b;
    border: 2px solid #0b4a8b;
    border-radius: 999px;
    cursor: pointer;
}

.banco-modal__close:hover {
    background: #073664;
    border-color: #073664;
}

.banco-modal__close:focus-visible,
.banco-modal__panel:focus-visible,
.banco-dev-modal-trigger:focus-visible {
    outline: 3px solid #f6c344;
    outline-offset: 3px;
}

@media (prefers-reduced-motion: no-preference) {
    .banco-modal {
        animation: banco-modal-fade-in 160ms ease-out;
    }

    .banco-modal__panel {
        animation: banco-modal-rise-in 160ms ease-out;
    }
}

@keyframes banco-modal-fade-in {
    from {
        opacity: 0;
    }
}

@keyframes banco-modal-rise-in {
    from {
        transform: translateY(0.75rem);
    }
}
