.cookie-consent {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%) translateY(calc(100% + 80px));
    z-index: 9999;

    width: calc(100% - 32px);
    max-width: 620px;

    padding: 22px 22px 20px 22px;

    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(252, 249, 242, 0.95) 100%);
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);

    border: 1px solid rgba(30, 170, 241, 0.16);
    border-radius: 22px;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 1),
        0 2px 6px rgba(30, 80, 130, 0.05),
        0 24px 56px -16px rgba(30, 80, 130, 0.28),
        0 0 0 1px rgba(255, 255, 255, 0.4);

    color: #1a2540;
    font-family: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

    transition:
        transform 0.7s cubic-bezier(0.22, 1.2, 0.36, 1),
        opacity 0.45s ease-out;
    opacity: 0;
    will-change: transform, opacity;
}

.cookie-consent::before {
    content: "";
    position: absolute;
    left: 12%;
    right: 12%;
    bottom: -22px;
    height: 36px;
    background: radial-gradient(ellipse at center, rgba(30, 170, 241, 0.28) 0%, rgba(30, 170, 241, 0) 70%);
    filter: blur(8px);
    pointer-events: none;
    z-index: -1;
}

.cookie-consent.is-visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.cookie-consent__inner {
    display: flex;
    align-items: center;
    gap: 18px;
}

.cookie-consent__icon {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 32% 28%, #fbe8be 0%, #f3c878 60%, #c98c44 100%);
    border-radius: 50%;
    box-shadow:
        inset 0 -4px 8px rgba(140, 84, 30, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        0 4px 10px rgba(201, 140, 68, 0.35);
    animation: cookie-pop 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) 0.35s both;
}

.cookie-consent__icon svg {
    width: 30px;
    height: 30px;
    display: block;
}

@keyframes cookie-pop {
    0%   { transform: rotate(-30deg) scale(0.4); }
    55%  { transform: rotate(10deg) scale(1.1); }
    78%  { transform: rotate(-5deg) scale(0.97); }
    100% { transform: rotate(0deg) scale(1); }
}

.cookie-consent__body {
    flex: 1 1 auto;
    min-width: 0;
}

.cookie-consent__eyebrow {
    display: block;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #1eaaf1;
    margin: 0 0 5px;
}

.cookie-consent__text {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.55;
    color: #2d3a52;
    font-weight: 400;
}

.cookie-consent__text a {
    color: #1395dc;
    text-decoration: none;
    border-bottom: 1px solid rgba(19, 149, 220, 0.35);
    transition: border-color 0.2s ease, color 0.2s ease;
}

.cookie-consent__text a:hover {
    color: #0f7bb8;
    border-bottom-color: #0f7bb8;
}

.cookie-consent__btn {
    flex: 0 0 auto;
    background: linear-gradient(180deg, #2bb5f4 0%, #1395dc 100%);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 11px 24px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    letter-spacing: 0.03em;
    cursor: pointer;
    white-space: nowrap;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.45),
        0 5px 12px rgba(30, 170, 241, 0.4),
        0 1px 2px rgba(30, 170, 241, 0.2);
    transition:
        transform 0.18s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.cookie-consent__btn:hover {
    background: linear-gradient(180deg, #38bff7 0%, #1aa0e8 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.55),
        0 8px 18px rgba(30, 170, 241, 0.5),
        0 1px 2px rgba(30, 170, 241, 0.2);
    transform: translateY(-1px);
}

.cookie-consent__btn:active {
    transform: translateY(0);
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.12),
        0 2px 6px rgba(30, 170, 241, 0.25);
}

.cookie-consent__btn:focus-visible {
    outline: 2px solid #1eaaf1;
    outline-offset: 3px;
}

.cookie-consent__close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 50%;
    color: #8a96b0;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.cookie-consent__close:hover {
    background: rgba(30, 80, 130, 0.07);
    color: #2d3a52;
    transform: rotate(90deg);
}

.cookie-consent__close:active {
    background: rgba(30, 80, 130, 0.12);
}

.cookie-consent__close:focus-visible {
    outline: 2px solid #1eaaf1;
    outline-offset: 2px;
}

.cookie-consent__close svg {
    width: 12px;
    height: 12px;
    display: block;
}

@media (max-width: 575px) {
    .cookie-consent {
        bottom: 12px;
        width: calc(100% - 16px);
        padding: 16px 18px;
        border-radius: 20px;
    }

    .cookie-consent::before {
        bottom: -16px;
        height: 28px;
    }

    .cookie-consent__inner {
        flex-wrap: wrap;
        row-gap: 14px;
    }

    .cookie-consent__icon {
        flex: 0 0 38px;
        width: 38px;
        height: 38px;
    }

    .cookie-consent__icon svg {
        width: 24px;
        height: 24px;
    }

    .cookie-consent__body {
        flex: 1 1 calc(100% - 56px);
    }

    .cookie-consent__text {
        font-size: 13px;
    }

    .cookie-consent__btn {
        flex: 1 1 100%;
        padding: 12px 20px;
        font-size: 13.5px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cookie-consent {
        transition: opacity 0.2s ease;
        transform: translateX(-50%) translateY(0);
    }
    .cookie-consent__icon {
        animation: none;
    }
    .cookie-consent__close:hover {
        transform: none;
    }
}
