.cookie-consent {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999990;
    padding: 12px;
    pointer-events: none;
}

.cookie-consent[hidden] {
    display: none !important;
}

.cookie-consent.is-visible {
    pointer-events: auto;
}

.cookie-consent__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 16px 20px;
    background: #1a1a1f;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.cookie-consent__text {
    flex: 1 1 280px;
    margin: 0;
    color: #d8d8e2;
    font-size: 14px;
    line-height: 1.55;
}

.cookie-consent__link {
    color: #b69cff;
    text-decoration: underline;
    white-space: nowrap;
}

.cookie-consent__link:hover {
    color: #e9d5ff;
}

.cookie-consent__link:focus-visible {
    outline: 2px solid rgba(188, 19, 254, 0.55);
    outline-offset: 3px;
    border-radius: 8px;
}

.cookie-consent__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cookie-consent__btn {
    appearance: none;
    border: 0;
    border-radius: 12px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.cookie-consent__btn:focus-visible {
    outline: 2px solid rgba(188, 19, 254, 0.55);
    outline-offset: 3px;
}

.cookie-consent__btn:hover {
    transform: translateY(-1px);
}

.cookie-consent__btn--accept {
    background: linear-gradient(135deg, #7c4dff, #5b31d6);
    color: #fff;
}

.cookie-consent__btn--necessary {
    background: rgba(255, 255, 255, 0.06);
    color: #e0e0e6;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

/* На мобільних/планшетах нижня навігація fixed — банер cookie над нею */
@media (max-width: 1199px) {
    body.cookie-consent-visible .cookie-consent {
        bottom: calc(var(--bottom-nav-h, 62px) + env(safe-area-inset-bottom, 0px));
    }
}

@media (max-width: 700px) {
    .cookie-consent {
        padding: 10px;
    }

    .cookie-consent__inner {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-consent__text {
        flex: 0 0 auto;
    }

    .cookie-consent__actions {
        width: 100%;
    }

    .cookie-consent__btn {
        flex: 1 1 auto;
    }
}
