.cookie-banner {
    position: fixed;
    left: 1rem; right: 1rem; bottom: 1rem;
    z-index: 1080;
    animation: cookieSlideUp .35s cubic-bezier(.2,.8,.2,1);
}
@media (min-width: 768px) {
    .cookie-banner {
        left: auto;
        right: 1.5rem;
        bottom: 1.5rem;
        max-width: 460px;
    }
}
.cookie-banner__card {
    position: relative;
    background: #fff;
    color: var(--kringwinkel-zwart);
    border-radius: 10px;
    box-shadow: 0 24px 48px rgba(0,0,0,.22), 0 4px 12px rgba(0,0,0,.08);
    padding: 1.5rem 1.5rem 1.1rem;
}
.cookie-banner__close {
    position: absolute;
    top: .5rem; right: .5rem;
    width: 34px; height: 34px;
    border: 0; background: transparent; color: var(--kringwinkel-zwart);
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    transition: background .2s ease, color .2s ease;
}
.cookie-banner__close:hover,
.cookie-banner__close:focus-visible {
    background: #f1f1f1; color: var(--kringwinkel-zwart); outline: none;
}
.cookie-banner__header {
    display: flex; align-items: center; gap: .85rem;
    margin-bottom: .85rem; padding-right: 2rem;
}
.cookie-banner__icon {
    width: 44px; height: 44px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--kringwinkel-oranje);
    color: #fff; font-size: 1.25rem;
    flex: 0 0 auto;
}
.cookie-banner__title {
    font-size: 1.35rem; line-height: 1.1; margin: 0;
    color: var(--kringwinkel-oranje);
}
.cookie-banner__body { font-size: .95rem; line-height: 1.45; }
.cookie-banner__muted { font-size: .82rem; color: var(--kringwinkel-zwart); }
.cookie-banner__link {
    color: var(--kringwinkel-oranje);
    text-decoration: underline;
    font-weight: 600;
}
.cookie-banner__link:hover { color: var(--kringwinkel-oranje); opacity: .85; }

.cookie-banner__prefs {
    margin-top: .9rem;
    border-top: 1px solid #eee;
    padding-top: .35rem;
}
.cookie-pref {
    display: flex; justify-content: space-between; align-items: center;
    gap: 1rem;
    padding: .7rem 0;
    border-bottom: 1px solid #f3f3f3;
}
.cookie-pref:last-child { border-bottom: 0; }
.cookie-pref__label { font-weight: 600; font-size: .95rem; }
.cookie-pref__desc  { font-size: .8rem; color: var(--kringwinkel-zwart); margin-top: .1rem; }

.cookie-switch {
    position: relative; display: inline-block;
    width: 42px; height: 24px; flex: 0 0 auto; cursor: pointer;
}
.cookie-switch input { opacity: 0; width: 0; height: 0; }
.cookie-switch__slider {
    position: absolute; inset: 0;
    background: #d6d6d6; border-radius: 999px;
    transition: background .2s ease;
}
.cookie-switch__slider::before {
    content: ''; position: absolute;
    width: 18px; height: 18px;
    left: 3px; top: 3px;
    background: #fff; border-radius: 50%;
    transition: transform .2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,.25);
}
.cookie-switch input:checked + .cookie-switch__slider { background: var(--kringwinkel-oranje); }
.cookie-switch input:checked + .cookie-switch__slider::before { transform: translateX(18px); }
.cookie-switch input:disabled + .cookie-switch__slider { background: #bdbdbd; cursor: not-allowed; }
.cookie-switch input:focus-visible + .cookie-switch__slider {
    box-shadow: 0 0 0 3px rgba(var(--kringwinkel-oranje-rgb, 235, 110, 35), .3);
}

.cookie-banner__actions {
    display: flex; gap: .5rem; flex-wrap: wrap;
    margin-top: 1rem; justify-content: flex-end;
}
.cookie-btn {
    border-radius: .6rem;
    font-weight: 600;
    padding: .55rem 1rem;
    border: 1px solid transparent;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.cookie-btn:hover { transform: translateY(-1px); }
.cookie-btn--primary {
    background: var(--kringwinkel-oranje); color: #fff;
}
.cookie-btn--primary:hover { background: var(--kringwinkel-oranje); color: #fff; filter: brightness(.95); }
.cookie-btn--light {
    background: #f4f4f4; color: var(--kringwinkel-zwart); border-color: #e5e5e5;
}
.cookie-btn--light:hover { background: #ececec; color: var(--kringwinkel-zwart); }
.cookie-btn--ghost {
    background: transparent; color: var(--kringwinkel-zwart);
}
.cookie-btn--ghost:hover { background: #f4f4f4; color: var(--kringwinkel-zwart); }

@keyframes cookieSlideUp {
    from { transform: translateY(120%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}
.cookie-banner.is-closing { animation: cookieSlideDown .3s ease-in forwards; }
@keyframes cookieSlideDown {
    to { transform: translateY(120%); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .cookie-banner, .cookie-banner.is-closing { animation: none; }
    .cookie-btn, .cookie-switch__slider, .cookie-switch__slider::before { transition: none; }
}
