.cookie-banner {
    position: fixed;
    left: 50%;
    bottom: 72px;
    z-index: 95;
    width: min(690px, calc(100% - 40px));
    padding: 16px 56px 16px 26px;
    border-radius: 28px;
    background-color: #79cef3;
    color: #fff;
    box-shadow: 0 12px 28px rgba(0, 90, 135, 0.18);
    opacity: 0;
    transform: translate(-50%, 18px);
    transition:
        opacity 0.25s ease,
        transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
        width 0.35s cubic-bezier(0.16, 1, 0.3, 1),
        left 0.35s cubic-bezier(0.16, 1, 0.3, 1),
        bottom 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner[hidden] {
    display: none;
}

.cookie-banner.is-visible {
    opacity: 1;
    transform: translate(-4%, 0);
}

.cookie-banner.is-compact {
    left: 24px;
    bottom: 24px;
    width: min(390px, calc(100% - 110px));
    padding: 14px 48px 14px 18px;
    border-radius: 22px;
    transform: translate(0, 0);
}

.cookie-banner__text {
    margin: 0;
    font-size: 21px;
    line-height: 1.2;
    font-weight: 300;
}

.cookie-banner.is-compact .cookie-banner__text {
    font-size: 14px;
    line-height: 1.25;
}

.cookie-banner__link {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-banner__close {
    position: absolute;
    top: 15px;
    right: 18px;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.cookie-banner__close span {
    position: absolute;
    top: 13px;
    left: 2px;
    width: 25px;
    height: 2px;
    border-radius: 2px;
    background-color: #fff;
}

.cookie-banner__close span:first-child {
    transform: rotate(45deg);
}

.cookie-banner__close span:last-child {
    transform: rotate(-45deg);
}

.cookie-banner__close:hover {
    opacity: 0.72;
}

.cookie-banner.is-closing {
    opacity: 0;
    pointer-events: none;
    transform: translateY(14px);
}

@media (max-width: 1440px) {
    .cookie-banner.is-visible {
        transform: translate(-25%, 0);
    }
}

@media (max-width: 1080px) {
    .cookie-banner.is-visible {
        transform: translate(-50%, 0);
    }
}

@media (max-width: 768px) {
    .cookie-banner {
        left: 50%;
        bottom: 18px;
        width: calc(100% - 32px);
        padding: 14px 46px 14px 18px;
        border-radius: 22px;
        transform: translate(-50%, 0);
    }

    .cookie-banner.is-compact {
        left: 16px;
        width: calc(100% - 88px);
        transform: translate(0, 0);
    }

    .cookie-banner__text {
        font-size: 13px;
        line-height: 1.22;
    }

    .cookie-banner.is-compact {
        bottom: 16px;
        padding: 12px 42px 12px 15px;
        border-radius: 18px;
    }

    .cookie-banner.is-compact .cookie-banner__text {
        font-size: 11px;
    }

    .cookie-banner__close {
        top: 10px;
        right: 12px;
        transform: scale(0.78);
    }
}

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