#csb-votacao-popup:not([open]) { display: none; }

#csb-votacao-popup {
    position: fixed;
    inset: 0;
    width: min(520px, calc(100% - 32px));
    max-height: calc(100% - 32px);
    max-height: calc(100dvh - 32px);
    margin: auto;
    padding: 0;
    overflow: auto;
    border: 0;
    border-radius: 18px;
    box-sizing: border-box;
    background: #fff;
    color: #13274b;
    box-shadow: 0 20px 70px #091b4580;
    font: 16px/1.5 system-ui, sans-serif;
}

#csb-votacao-popup::backdrop { background: #031436bb; }

#csb-votacao-popup .csb-votacao-popup-art {
    display: block;
    width: 100%;
    height: auto;
    background: #08275d;
}

#csb-votacao-popup .csb-votacao-popup-copy {
    padding: clamp(18px, 5vw, 30px);
    text-align: center;
}

#csb-votacao-popup h2 {
    margin: 0 0 12px;
    color: inherit;
    font: 750 clamp(22px, 5vw, 31px)/1.15 system-ui, sans-serif;
}

#csb-votacao-popup p { margin: 0 0 20px; }

#csb-votacao-popup .csb-votacao-popup-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 48px;
    max-width: 100%;
    padding: 0 22px;
    border-radius: 9px;
    background: #005b43;
    color: white;
    font-weight: 700;
    text-decoration: none;
}

#csb-votacao-popup .csb-votacao-popup-close {
    position: absolute;
    z-index: 1;
    top: 10px;
    right: 10px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 2px solid #dce7ff;
    border-radius: 50%;
    background: #081b4d;
    color: white;
    font: 28px/1 system-ui, sans-serif;
    cursor: pointer;
}

#csb-votacao-popup :focus-visible {
    outline: 3px solid #095ec1;
    outline-offset: 3px;
}

#csb-votacao-popup .csb-votacao-popup-close:focus-visible { outline-color: #ffd44c; }
