.cookie-bar {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translate(-50%, 150%);
    max-width: 880px;
    width: 92%;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 24px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 1200;
    transition: transform 0.35s ease;
    will-change: transform;
    backface-visibility: hidden;
}

.cookie-bar.is-hidden {
    display: none;
}

.cookie-bar.show {
    transform: translate(-50%, 0);
}

.cookie-bar__text {
    flex: 1;
}

.cookie-bar__title {
    display: block;
    margin-bottom: 4px;
    color: #111827;
    font-size: 16px;
    font-weight: 700;
}

.cookie-bar__desc {
    color: #4b5563;
    font-size: 14px;
    line-height: 1.6;
}

.cookie-bar__desc a {
    color: #7c3aed;
    text-decoration: none;
    transition: color 0.2s;
}

.cookie-bar__desc a:hover {
    color: #6d28d9;
    text-decoration: underline;
}

.cookie-bar__btn {
    flex-shrink: 0;
    padding: 12px 28px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.25);
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: box-shadow 0.2s, transform 0.2s;
    white-space: nowrap;
}

.cookie-bar__btn:hover {
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.35);
}

.cookie-bar__btn:active {
    transform: scale(0.97);
}

.cookie-bar--compact {
    padding: 18px 22px;
    border: 0;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
    font-family: 'WB combo VF Variable', system-ui, sans-serif;
}

.cookie-bar--compact .cookie-bar__title,
.cookie-bar--compact .cookie-bar__desc {
    font-size: 15px;
}

.cookie-bar--compact .cookie-bar__btn {
    padding: 13px 28px;
    border-radius: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .cookie-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 20px 18px;
        text-align: left;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .cookie-bar__btn {
        width: 100%;
    }

    .cookie-bar__title,
    .cookie-bar__desc,
    .cookie-bar--compact .cookie-bar__title,
    .cookie-bar--compact .cookie-bar__desc {
        font-size: 14px;
    }
}
