/* HFA Notificatiebalk - Universele CSS v2 */

/* --- 1. Isoleer de hoofdcontainer --- */
.hfa-notification-bar {
    all: initial; /* Reset alleen de container zelf, niet de inhoud. */
    box-sizing: border-box;
    display: block !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 2147483647 !important; 
    height: auto !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    /* De door de gebruiker ingestelde achtergrond- en tekstkleur wordt hier inline toegepast. */
}

/* --- 2. Style de inner-content wrapper --- */
.hfa-notification-bar-content {
    padding: 12px 50px 12px 20px;
    text-align: center;
    word-wrap: break-word;
    position: relative;
    color: inherit;
}

/* --- 3. Herstel basisstijlen voor tekstelementen --- */
.hfa-notification-bar p,
.hfa-notification-bar h1,
.hfa-notification-bar h2,
.hfa-notification-bar h3 {
    background: none;
    border: 0;
    margin: 0;
    padding: 0;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
    font-weight: normal; /* Reset eventuele thema-overrides */
}

/* Standaard opmaak (vet/cursief) werkt nu automatisch. WordPress text-align classes ook. */
.hfa-notification-bar strong { font-weight: bold; }
.hfa-notification-bar em { font-style: italic; }

/* --- 4. Styling voor Afbeeldingen --- */
.hfa-notification-bar img {
    max-width: 100%;
    height: auto;
    display: inline-block;
    vertical-align: middle;
    margin: 5px 0;
}

/* --- 5. Styling voor Knoppen (Gutenberg) --- */
.hfa-notification-bar .wp-block-button {
    margin: 0.5em 0 0 0;
}
.hfa-notification-bar .wp-block-button__link {
    /* Reset knop-stijlen voor een schone basis */
    all: initial; 
    box-sizing: border-box;
    font-family: inherit;
    /* Pas onze eigen knop-stijlen toe */
    display: inline-block;
    padding: 8px 16px !important;
    font-size: 14px !important;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: opacity 0.2s ease-in-out;
    /* Standaardkleuren (de editor kan deze overschrijven) */
    background-color: #ffffff;
    color: #333333;
}
.hfa-notification-bar .wp-block-button__link:hover {
    opacity: 0.85;
}


/* --- 6. Styling voor de Sluitknop --- */
.hfa-nb-close-btn {
    all: initial;
    box-sizing: border-box;
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: inherit;
    font-size: 24px;
    font-family: 'Helvetica', 'Arial', sans-serif;
    line-height: 1;
    cursor: pointer;
    padding: 5px;
    opacity: 0.7;
    transition: opacity 0.2s ease-in-out;
}

.hfa-nb-close-btn:hover {
    opacity: 1;
}