/* =============================================
   Cookie Manager - Sijmens Web
   ============================================= */

   #cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 100dvw;
    z-index: 99999;
    background: #001a40;
    color: #f0f0f0;
    box-shadow: 0 -4px 24px rgba(0, 46, 108, 0.5);
    font-family: 'Raleway', sans-serif;
    font-size: 14px;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

#cookie-banner.visible {
    transform: translateY(0);
}

#cookie-banner .cookie-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 24px;
}

#cookie-banner .cookie-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

#cookie-banner .cookie-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
}

#cookie-banner .cookie-header .cookie-icon {
    font-size: 20px;
}

#cookie-banner .cookie-text {
    color: #c8c8d8;
    line-height: 1.55;
    margin-bottom: 18px;
}

#cookie-banner .cookie-text a {
    color: #6699ff;
    text-decoration: underline;
}

/* Toggle rows */
#cookie-banner .cookie-options {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 18px;
}

#cookie-banner .cookie-option {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 10px 14px;
    flex: 1;
    min-width: 200px;
}

#cookie-banner .cookie-option .option-label {
    flex: 1;
}

#cookie-banner .cookie-option .option-label strong {
    display: block;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
}

#cookie-banner .cookie-option .option-label span {
    color: #9090aa;
    font-size: 12px;
}

/* Toggle switch */
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 24px;
    flex-shrink: 0;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-toggle .slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #002258;
    border-radius: 24px;
    transition: background 0.25s;
}

.cookie-toggle .slider:before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.25s;
}

.cookie-toggle input:checked + .slider {
    background: #002e6c;
}

.cookie-toggle input:checked + .slider:before {
    transform: translateX(18px);
}

.cookie-toggle input:disabled + .slider {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Buttons */
#cookie-banner .cookie-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

#cookie-banner .btn-cookie {
    padding: 10px 22px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background 0.2s, transform 0.15s;
    font-family: 'Raleway', sans-serif;
    letter-spacing: 0.3px;
}

#cookie-banner .btn-cookie:active {
    transform: scale(0.97);
}

#cookie-banner .btn-accept-all {
    background: #002e6c;
    color: #fff;
}

#cookie-banner .btn-accept-all:hover {
    background: #003d91;
}

#cookie-banner .btn-save {
    background: transparent;
    color: #c8c8d8;
    border: 1px solid rgba(255,255,255,0.2);
}

#cookie-banner .btn-save:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
}

#cookie-banner .btn-reject-all {
    background: transparent;
    color: #9090aa;
    border: none;
    padding: 10px 14px;
    font-size: 12px;
}

#cookie-banner .btn-reject-all:hover {
    color: #c8c8d8;
}

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 600px) {
    /* Balk scrollbaar maken als ie te hoog wordt */
    #cookie-banner {
        max-height: 90dvh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    #cookie-banner .cookie-inner {
        padding: 16px;
        max-width: 100%;
    }

    #cookie-banner .cookie-header h3 {
        font-size: 15px;
    }

    #cookie-banner .cookie-text {
        font-size: 13px;
        margin-bottom: 14px;
    }

    /* Opties onder elkaar */
    #cookie-banner .cookie-options {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 14px;
        width: 100%;
    }

    #cookie-banner .cookie-option {
        min-width: 0;
        width: 100%;
    }

    /* Toggle groter voor vingers */
    .cookie-toggle {
        width: 50px;
        height: 28px;
    }

    .cookie-toggle .slider:before {
        width: 22px;
        height: 22px;
    }

    .cookie-toggle input:checked + .slider:before {
        transform: translateX(22px);
    }

    /* Knoppen stapelen, volledige breedte, hogere taptargets */
    #cookie-banner .cookie-buttons {
        flex-direction: column;
        gap: 8px;
    }

    #cookie-banner .btn-cookie {
        width: 100%;
        text-align: center;
        padding: 13px 22px;
        font-size: 14px;
    }

    #cookie-banner .btn-reject-all {
        padding: 10px 22px;
        font-size: 13px;
    }
}
