/* ============================================================
   FestaMulti — Publicidade / Google AdSense
   Estilos discretos, responsivos e sem sobreposição.
   ============================================================ */

.fm-publicidade {
    width: 100%;
    max-width: 970px;
    margin: 1.75rem auto;
    text-align: center;
    overflow: hidden;
}

.fm-publicidade-label {
    display: block;
    margin-bottom: .35rem;
    color: var(--fm-muted, #687a72);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .1em;
    line-height: 1.35;
    overflow-wrap: anywhere;
    text-transform: uppercase;
}

.fm-publicidade-frame {
    min-height: 90px;
    width: 100%;
}

.fm-publicidade-frame .adsbygoogle {
    width: 100%;
}

.fm-publicidade[hidden] {
    display: none !important;
}

/* Prévia administrativa (modo teste) */

.fm-publicidade-preview-box {
    padding: 1rem;
    border: 1px dashed var(--fm-border, #dcece3);
    border-radius: var(--fm-radius, 1.15rem);
    background: var(--fm-green-soft, #f2fbf6);
    color: var(--fm-ink, #1d2b26);
    text-align: left;
}

.fm-publicidade-preview-box code {
    color: var(--fm-green-dark, #0d5c37);
    word-break: break-all;
}

.fm-publicidade-preview-box .fm-preview-meta {
    overflow-wrap: anywhere;
}

/* Modal de termos de cookies */

.fm-cookie-modal .modal-content {
    border: 0;
    border-radius: var(--fm-radius, 1.15rem);
    box-shadow: 0 20px 50px rgba(21, 122, 75, .22);
}

.fm-cookie-modal .modal-header {
    padding: 1.15rem 1.5rem;
    border-bottom: 1px solid var(--fm-border, #dcece3);
    background: var(--fm-green-soft, #f2fbf6);
    border-radius: var(--fm-radius, 1.15rem) var(--fm-radius, 1.15rem) 0 0;
}

.fm-cookie-modal .modal-title {
    color: var(--fm-ink, #1d2b26);
}

.fm-cookie-modal .modal-body {
    padding: 1.5rem;
    color: var(--fm-ink, #1d2b26);
}

.fm-cookie-modal .modal-body p {
    line-height: 1.65;
}

.fm-cookie-modal .modal-body .table {
    font-size: .85rem;
}

.fm-cookie-modal .modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--fm-border, #dcece3);
}

.fm-cookie-modal .modal-footer .btn {
    white-space: nowrap;
}

/* Botão do rodapé (mesmo visual dos links institucionais) */

.fm-footer-links .fm-footer-link-button {
    display: inline;
    padding: 0;
    border: 0;
    background: none;
    color: #d6e8df;
    font: inherit;
    text-align: left;
    text-decoration: none;
}

.fm-footer-links .fm-footer-link-button:hover,
.fm-footer-links .fm-footer-link-button:focus-visible {
    color: #ffc857;
    text-decoration: underline;
}

@media (max-width: 575.98px) {
    .fm-publicidade {
        margin: 1.25rem auto;
    }

    .fm-publicidade-label {
        font-size: .6rem;
        letter-spacing: .06em;
    }

    .fm-cookie-modal .modal-header {
        padding: .95rem 1.1rem;
    }

    .fm-cookie-modal .modal-body {
        padding: 1.1rem;
    }

    .fm-cookie-modal .modal-footer {
        padding: .9rem 1.1rem;
    }

    .fm-cookie-modal .modal-footer .btn {
        flex: 1 1 auto;
    }
}
