/* ============================================
   // Cookie Banner – TT Hovenierswerken
   // Stijl passend bij het dark/gold thema
   ============================================ */

/* // Cookie Banner: fixed balk onderaan het scherm (altijd zichtbaar) */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: var(--dark-3);
    border-top: 2px solid var(--gold);
    box-shadow: 0 -4px 32px rgba(0, 0, 0, 0.55);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    padding-top: 0;
    padding-bottom: 0;
    transition: opacity 0.45s ease,
                max-height 0.45s cubic-bezier(0.22, 1, 0.36, 1),
                padding 0.45s ease;
}

/* // Cookie Banner: zichtbaar wanneer actief */
#cookie-banner.visible {
    opacity: 1;
    max-height: 400px;
    padding: 20px 24px;
}

/* // Cookie Banner: verborgen na keuze */
#cookie-banner.hidden {
    opacity: 0;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    pointer-events: none;
}

/* // Cookie Banner: tekst blok */
.cookie-text {
    flex: 1;
    min-width: 220px;
}

.cookie-text p {
    font-size: 0.88rem;
    color: var(--text);
    line-height: 1.6;
    margin: 0;
}

.cookie-text p strong {
    color: var(--gold);
    font-weight: 700;
}

.cookie-text a {
    color: var(--gold-light);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color var(--transition);
}

.cookie-text a:hover {
    color: var(--gold);
}

/* // Cookie Banner: knoppen groep */
.cookie-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

/* // Cookie Banner: accepteer knop (goud) */
#cookie-accept {
    background: var(--gold);
    color: var(--dark);
    border: none;
    padding: 10px 22px;
    border-radius: var(--radius);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: background var(--transition), transform 0.15s ease;
    white-space: nowrap;
}

#cookie-accept:hover {
    background: var(--gold-light);
    transform: translateY(-1px);
}

#cookie-accept:active {
    transform: translateY(0);
}

/* // Cookie Banner: weiger knop (outline) */
#cookie-decline {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--dark-5);
    padding: 10px 18px;
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: border-color var(--transition), color var(--transition);
    white-space: nowrap;
}

#cookie-decline:hover {
    border-color: var(--text-muted);
    color: var(--text);
}

/* // Cookie Banner: gouden accent lijn links */
#cookie-banner::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--gold), var(--gold-dark));
    border-radius: 0 2px 2px 0;
}

/* // Cookie Banner: responsive mobiel */
@media (max-width: 600px) {
    #cookie-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    #cookie-banner.visible {
        padding: 18px 18px 22px;
        max-height: 400px;
    }

    .cookie-text {
        min-width: 0;
        width: 100%;
    }

    .cookie-actions {
        width: 100%;
    }

    #cookie-accept,
    #cookie-decline {
        flex: 1;
        text-align: center;
    }
}
