/* Cookie notice: centered floating banner, styled to match Kvant. */
.cookie-banner[hidden] {
    display: none !important;
}

.cookie-banner {
    position: fixed;
    left: 50%;
    bottom: 48px;
    z-index: 990;
    width: min(1000px, calc(100% - 40px));
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, 32px);
    transition: opacity .45s ease, visibility .45s ease, transform .45s cubic-bezier(.22, 1, .36, 1);
    font-family: var(--font-base, "Inter", Arial, sans-serif);
}

.cookie-banner.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.cookie-banner.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, 20px);
}

.cookie-banner__content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 200px;
    align-items: center;
    gap: 28px;
    width: 100%;
    min-height: 104px;
    padding: 20px 28px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 40px rgba(16, 24, 40, .12);
    box-sizing: border-box;
}

.cookie-banner__text {
    margin: 0;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
    color: #111927;
}

.cookie-banner__text-accent,
.cookie-banner__text a {
    font-weight: 500;
}

.cookie-banner__text a {
    color: #1570ef;
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: color .25s ease;
}

.cookie-banner__text a:hover {
    color: #0b4ca7;
}

.cookie-banner__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 200px;
    min-height: 52px;
    padding: 12px 16px;
    border: 0;
    border-radius: 6px;
    background: #1570ef;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
    color: #fff;
    text-align: center;
    cursor: pointer;
    transition: background .25s ease;
}

.cookie-banner__close:hover {
    background: #175cd3;
}

.cookie-banner__close:focus-visible,
.cookie-banner__text a:focus-visible {
    outline: 2px solid #2e90fa;
    outline-offset: 3px;
}

@media (max-width: 991px) {
    .cookie-banner {
        bottom: 28px;
    }

    .cookie-banner__content {
        grid-template-columns: minmax(0, 1fr) 180px;
        gap: 22px;
        padding: 20px 24px;
    }

    .cookie-banner__text {
        font-size: 14px;
    }

    .cookie-banner__close {
        width: 180px;
        font-size: 15px;
    }
}

@media (max-width: 680px) {
    .cookie-banner {
        bottom: calc(16px + env(safe-area-inset-bottom, 0px));
        width: calc(100% - 32px);
    }

    .cookie-banner__content {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 20px;
    }

    .cookie-banner__close {
        width: 100%;
        min-height: 50px;
    }
}

@media (max-width: 575px) {
    .cookie-banner__content {
        gap: 14px;
        padding: 18px;
        border-radius: 10px;
    }

    .cookie-banner__text {
        font-size: 13px;
        line-height: 1.5;
    }

    .cookie-banner__close {
        min-height: 48px;
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cookie-banner {
        transition: none;
    }
}
