.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    width: 100%;
    transform: translateY(100%);
    transition: transform 0.35s ease, opacity 0.35s ease;
    opacity: 0;
    pointer-events: none;
    font-family: inherit;
}

.cookie-banner.is-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.cookie-banner__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
    box-sizing: border-box;
    background: #ffffff;
    color: #1f1f1f;
    padding: 16px 24px;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08);
    font-size: 14px;
    line-height: 1.5;
}

.cookie-banner__text {
    margin: 0;
    color: #4a4a4a;
    flex: 1 1 auto;
    min-width: 0; 
}

.cookie-banner__link {
    color: #3b89ff;
    text-decoration: underline;
    white-space: nowrap;
}

.cookie-banner__link:hover {
    color: #2a6fd6;
}

.cookie-banner__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

.cookie-banner__btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    background: #3b89ff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.cookie-banner__btn:hover {
    background: #2a6fd6;
}

.cookie-banner__btn:active {
    background: #1e5bb8;
}

.cookie-banner__close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 50%;
    color: #8a8a8a;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    flex: 0 0 auto;
}

.cookie-banner__close:hover {
    background: #f2f2f2;
    color: #1f1f1f;
}

.cookie-banner__close svg {
    display: block;
}

/* Мобильные: текст и кнопки в столбик */
@media (max-width: 768px) {
    .cookie-banner__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 16px;
        font-size: 13px;
    }
    .cookie-banner__actions {
        justify-content: flex-end;
    }
    .cookie-banner__btn {
        flex: 1 1 auto;
        text-align: center;
    }
}

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