.cookie-consent {
    position: fixed;
    top: auto;
    left: 24px;
    right: auto;
    bottom: 24px;
    z-index: 140;
    display: grid;
    justify-items: start;
    pointer-events: none;
}

.cookie-consent[hidden] {
    display: none !important;
}

.cookie-consent.is-visible {
    pointer-events: none;
}

.cookie-consent__backdrop {
    display: none;
}

.cookie-consent__panel {
    position: relative;
    pointer-events: auto;
    width: min(100%, 430px);
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(0, 58, 122, 0.96), rgba(0, 87, 184, 0.88));
    box-shadow: 0 24px 60px rgba(0, 26, 58, 0.32);
    color: rgba(255, 255, 255, 0.96);
    overflow: hidden;
    transform: translateY(28px) scale(0.96);
    opacity: 0;
    transition: transform 260ms cubic-bezier(.2, .8, .2, 1), opacity 220ms ease;
}

.cookie-consent:not(.is-visible) .cookie-consent__panel {
    pointer-events: none;
}

.cookie-consent__panel::before,
.cookie-consent__panel::after {
    content: '';
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
}

.cookie-consent__panel::before {
    width: 180px;
    height: 180px;
    top: -90px;
    right: -70px;
    background: radial-gradient(circle, rgba(255, 216, 77, 0.34), rgba(255, 216, 77, 0) 72%);
}

.cookie-consent__panel::after {
    width: 160px;
    height: 160px;
    left: -70px;
    bottom: -80px;
    background: radial-gradient(circle, rgba(126, 192, 255, 0.22), rgba(126, 192, 255, 0) 72%);
}

.cookie-consent.is-visible .cookie-consent__panel {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.cookie-consent__badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.94);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cookie-consent__title {
    position: relative;
    margin: 0 0 10px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.35rem, 2vw, 1.7rem);
    line-height: 1.08;
}

.cookie-consent__text {
    position: relative;
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.98rem;
    line-height: 1.65;
}

.cookie-consent__actions {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.cookie-consent__button {
    appearance: none;
    border: 0;
    border-radius: 999px;
    padding: 14px 18px;
    font-weight: 800;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.cookie-consent__button:hover {
    transform: translateY(-1px);
}

.cookie-consent__button--primary {
    background: linear-gradient(135deg, #ffd84d 0%, #ffe992 100%);
    color: #0d2442;
    box-shadow: 0 12px 28px rgba(255, 216, 77, 0.28);
}

.cookie-consent__button--ghost {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.cookie-consent__link {
    position: relative;
    display: inline-flex;
    margin-top: 16px;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.4);
    text-underline-offset: 0.18em;
}

@media (max-width: 640px) {
    .cookie-consent {
        top: auto;
        left: 14px;
        right: 14px;
        bottom: 14px;
    }

    .cookie-consent__panel {
        width: 100%;
        padding: 20px 18px;
        border-radius: 20px;
    }

    .cookie-consent__actions {
        flex-direction: column;
    }

    .cookie-consent__button {
        width: 100%;
        justify-content: center;
    }
}


