/* Bandeau d'informations AFABEGO. Couleurs : variables posées par le plugin (réglages). */
/* Pas de z-index : placé sous le menu, le bandeau doit passer SOUS les sous-menus déroulants du thème. */
.afbd {
    font-size: 15px;
    line-height: 1.45;
}
.afbd[hidden],
.afbd-message[hidden] {
    display: none !important;
}
.afbd-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 10px 16px;
    background: var(--afbd-fond);
    color: var(--afbd-texte);
}
.afbd-message + .afbd-message {
    border-top: 1px solid rgba(0, 0, 0, 0.15);
}
/* Deux classes : plus fort qu'un « p { color } » ou « td p » du thème ou de l'admin. */
.afbd .afbd-texte {
    margin: 0;
    max-width: 72ch;
    text-align: center;
    color: var(--afbd-texte);
    font-size: inherit;
    line-height: inherit;
}
.afbd .afbd-texte a,
.afbd .afbd-texte a:visited,
.afbd .afbd-texte a:hover {
    color: var(--afbd-lien);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.afbd-texte strong,
.afbd-texte b {
    font-weight: 700;
    color: inherit;
}
.afbd-fermer {
    flex: none;
    width: 32px;
    height: 32px;
    margin: -6px -8px -6px 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: inherit;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.85;
}
.afbd-fermer:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.1);
}
.afbd-fermer:focus-visible,
.afbd-texte a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}
@media (max-width: 600px) {
    .afbd {
        font-size: 14px;
    }
    .afbd-message {
        justify-content: space-between;
        padding: 8px 12px;
    }
    .afbd .afbd-texte {
        text-align: left;
    }
}
