/* ══════════════════════════════════════════════════
   COOKIE BANNER - Alternative Design from bottom-bar.html
   NOTE: This is the NEW cookie banner design
   ══════════════════════════════════════════════════ */

.cookies-banner {
    position: fixed;
    bottom: 82px;
    /* Positioned above bottom bar */
    right: 28px;
    z-index: 9998;

    display: none;
    /* Hidden by default mainly until JS decides if it's accepted or not, but also for scroll logic */
    align-items: center;
    gap: 18px;

    background: #e2e2e2;
    border: 1.5px solid #bbbbbb;
    border-radius: 16px;
    padding: 18px 22px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);

    max-width: 480px;
    width: auto;

    /* Transition for visibility toggle via scroll */
    transition: transform 0.4s cubic-bezier(0.22, 0.61, 0, 1), opacity 0.4s ease;
}

@keyframes cookies-slide-in {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Logic for hiding/showing based on scroll (mobile mainly) */
@media (max-width: 768px) {

    /* If it has .is-scrolled-hidden class, hide it */
    .cookies-banner.is-scrolled-hidden {
        transform: translateY(150px) !important;
        /* Move way down */
        opacity: 0;
        pointer-events: none;
    }
}

.cookies-banner.hide {
    animation: cookies-slide-out 0.3s ease forwards;
}

@keyframes cookies-slide-out {
    0% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(20px);
    }
}

.cookies-text {
    font-size: 15px;
    line-height: 1.55;
    color: #444;
    flex: 1;
}

.cookies-text a {
    color: #444;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

.cookies-text a:hover {
    color: #000;
}

.cookies-accept {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;

    background: #1a1a1a;
    color: #fff;
    border: 1.5px solid #1a1a1a;

    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1.4px;
    text-transform: uppercase;

    padding: 10px 22px;
    border-radius: 30px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.25s ease, color 0.25s ease;
}

.cookies-accept:hover {
    background: #fff;
    color: #1a1a1a;
}

@media (max-width: 480px) {
    .cookies-banner {
        bottom: 74px;
        right: 12px;
        left: 12px;
        max-width: none;
        padding: 14px 16px;
        gap: 12px;
    }

    .cookies-text {
        font-size: 13px;
    }

    .cookies-accept {
        font-size: 12px;
        padding: 9px 16px;
        letter-spacing: 1.2px;
    }
}