/* Cookie notice */

.cookie{
    position:fixed;
    right:24px;
    bottom:calc(24px + env(safe-area-inset-bottom, 0px));
    z-index:950;
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:18px;
    width:min(440px, calc(100% - 48px));
    padding:22px 24px;
    border:1px solid rgba(255,255,255,.1);
    border-radius:var(--radius);
    background:rgba(16,16,16,.94);
    -webkit-backdrop-filter:blur(18px);
    backdrop-filter:blur(18px);
    box-shadow:var(--shadow);
    opacity:0;
    transform:translateY(16px);
    transition:opacity .45s ease, transform .45s cubic-bezier(.22,1,.36,1);
}

.cookie[hidden]{
    display:none;
}

.cookie.is-visible{
    opacity:1;
    transform:none;
}

.cookie__text{
    color:var(--gray);
    font-size:14px;
    line-height:1.6;
}

.cookie__text a{
    color:var(--text);
    text-decoration:underline;
    text-decoration-color:rgba(255,255,255,.35);
    text-underline-offset:3px;
    transition:text-decoration-color .3s ease;
}

.cookie__text a:hover{
    text-decoration-color:var(--text);
}

.cookie .cookie__button{
    width:auto;
    height:46px;
    padding:0 28px;
    font-size:15px;
}

body.nav-open .cookie{
    opacity:0;
    pointer-events:none;
}

@media (max-width:768px){

    .cookie{
        right:12px;
        bottom:calc(12px + env(safe-area-inset-bottom, 0px));
        width:calc(100% - 24px);
        gap:12px;
        padding:14px 16px;
    }

    .cookie__text{
        font-size:12.5px;
        line-height:1.5;
    }

    .cookie .cookie__button{
        height:38px;
        padding:0 22px;
        font-size:14px;
    }

    body.cookie-open .tg-float{
        bottom:calc(28px + var(--cookie-height, 0px) + env(safe-area-inset-bottom, 0px));
    }
}

@media (prefers-reduced-motion:reduce){

    .cookie{
        transition:none;
    }
}
