#topbanner {
    display: none; /* Wordt nog steeds via JS getoond */
    background-color: var(--banner-bg); /* Pakt de dynamische kleur uit de HTML */
    
    width: 100%;
    z-index: 9999;
    text-align: center;
    padding: 10px 0;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2em;
}

#topbanner-container {
    width: 100%;
    max-width: 1200px; /* Of de breedte van jouw thema-container */
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

#topbanner-text {
    flex-grow: 1;
}

#topbanner-close {
    cursor: pointer;
    padding: 0 10px;
}

/* Verwijder de padding-top op de body als je de banner niet meer 'fixed' wilt hebben */
body {
    padding-top: 0 !important;
}

/* Container voor de tooltip */
.banner-tooltip {
    position: relative;
    display: inline-block;
    cursor: help;
    border-bottom: 1px dotted #fff; /* Geeft aan dat er iets te zien is */
}

/* Het wolkje zelf */
.banner-tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 10000;
    bottom: 125%; /* Plaatst het wolkje boven de tekst */
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
    font-weight: normal;
    line-height: 1.2;
}

/* Het driehoekje onderaan het wolkje */
.banner-tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

/* Tonen bij mouse-over */
.banner-tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}