/* ============================================================
   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;
}

/* Aviso de consentimento */

.fm-consent {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 1085;
    width: min(560px, calc(100% - 2rem));
    padding: .9rem 1rem;
    border: 1px solid var(--fm-border, #dcece3);
    border-radius: var(--fm-radius, 1.15rem);
    background: #ffffff;
    box-shadow: 0 14px 38px rgba(21, 122, 75, .18);
}

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

.fm-consent-inner {
    display: block;
    width: 100%;
    margin: 0;
}

.fm-consent-text {
    min-width: 0;
    color: var(--fm-ink, #1d2b26);
}

.fm-consent-text p {
    max-width: 62rem;
    line-height: 1.55;
}

.fm-consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    align-items: center;
    justify-content: flex-end;
    margin-top: .7rem;
}

.fm-consent-actions .btn {
    white-space: nowrap;
}

.fm-consent-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
}

body.fm-consent-open {
    padding-bottom: 8.5rem;
}

/* 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-consent {
        right: .75rem;
        bottom: .75rem;
        left: .75rem;
        width: auto;
        max-height: 45vh;
        padding: .7rem .8rem;
        overflow-y: auto;
        font-size: .8rem;
    }

    .fm-consent-text p {
        line-height: 1.45;
    }

    .fm-consent-actions {
        width: 100%;
        justify-content: flex-start;
        margin-top: .55rem;
    }

    .fm-consent-actions .btn:not(.fm-consent-close) {
        flex: 1 1 auto;
    }

    body.fm-consent-open {
        padding-bottom: 10.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fm-consent {
        transition: none;
    }
}
