.cookie-notice {
    position: fixed;
    right: 20px;
    bottom: calc(20px + env(safe-area-inset-bottom));
    left: 20px;

    z-index: 3000;

    display: flex;
    justify-content: center;

    pointer-events: none;
}

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

.cookie-notice__card {
    position: relative;

    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;

    width: min(100%, 960px);
    padding: 22px 58px 22px 22px;

    color: #ffffff;

    background:
        radial-gradient(
            circle at 10% 20%,
            rgba(116, 77, 255, 0.28),
            transparent 36%
        ),
        linear-gradient(
            135deg,
            rgba(15, 8, 57, 0.97),
            rgba(39, 17, 115, 0.96)
        );

    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 26px;

    box-shadow:
        0 24px 70px rgba(0, 0, 41, 0.42),
        0 8px 24px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);

    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);

    opacity: 0;
    pointer-events: auto;

    transform: translateY(28px) scale(0.98);

    transition:
        opacity 280ms ease,
        transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

.cookie-notice__icon {
    display: grid;
    place-items: center;

    width: 58px;
    height: 58px;

    color: #8d72ff;

    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.cookie-notice__icon svg {
    width: 34px;
    height: 34px;
}

.cookie-notice__content {
    min-width: 0;
}

.cookie-notice__title {
    margin: 0 0 6px;

    color: #ffffff;

    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.cookie-notice__text {
    max-width: 650px;
    margin: 0;

    color: rgba(255, 255, 255, 0.78);

    font-size: 14px;
    line-height: 1.55;
}

.cookie-notice__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    margin-top: 9px;

    color: #c9bdff;

    font-size: 13px;
    font-weight: 600;
    text-decoration: none;

    transition:
        color 160ms ease,
        gap 160ms ease;
}

.cookie-notice__link:hover {
    gap: 9px;
    color: #ffffff;
}

.cookie-notice__link:focus-visible,
.cookie-notice__accept:focus-visible,
.cookie-notice__close:focus-visible {
    outline: 3px solid rgba(201, 189, 255, 0.75);
    outline-offset: 3px;
}

.cookie-notice__actions {
    display: flex;
    align-items: center;
}

.cookie-notice__accept {
    min-width: 120px;
    padding: 13px 22px;

    color: #1a0c56;

    font: inherit;
    font-size: 14px;
    font-weight: 700;

    background: #ffffff;
    border: 0;
    border-radius: 999px;

    cursor: pointer;

    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);

    transition:
        transform 160ms ease,
        box-shadow 160ms ease,
        background-color 160ms ease;
}

.cookie-notice__accept:hover {
    background: #f1edff;

    box-shadow: 0 11px 28px rgba(0, 0, 0, 0.24);

    transform: translateY(-2px);
}

.cookie-notice__accept:active {
    transform: translateY(0);
}

.cookie-notice__close {
    position: absolute;
    top: 14px;
    right: 14px;

    display: grid;
    place-items: center;

    width: 32px;
    height: 32px;
    padding: 0;

    color: rgba(255, 255, 255, 0.6);

    background: transparent;
    border: 0;
    border-radius: 50%;

    cursor: pointer;

    transition:
        color 160ms ease,
        background-color 160ms ease;
}

.cookie-notice__close:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.cookie-notice__close svg {
    width: 18px;
    height: 18px;
}

@media (max-width: 760px) {
    .cookie-notice {
        right: 12px;
        bottom: calc(12px + env(safe-area-inset-bottom));
        left: 12px;
    }

    .cookie-notice__card {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 14px;

        padding: 18px 46px 18px 18px;

        border-radius: 22px;
    }

    .cookie-notice__icon {
        width: 48px;
        height: 48px;

        border-radius: 15px;
    }

    .cookie-notice__icon svg {
        width: 29px;
        height: 29px;
    }

    .cookie-notice__title {
        font-size: 18px;
    }

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

    .cookie-notice__actions {
        grid-column: 1 / -1;
    }

    .cookie-notice__accept {
        width: 100%;
    }
}

@media (max-width: 460px) {
    .cookie-notice__card {
        display: block;

        padding: 20px;
        padding-top: 54px;
    }

    .cookie-notice__icon {
        position: absolute;
        top: 16px;
        left: 18px;

        width: 38px;
        height: 38px;

        border-radius: 12px;
    }

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

    .cookie-notice__title {
        padding-right: 8px;
    }

    .cookie-notice__actions {
        margin-top: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cookie-notice__card,
    .cookie-notice__accept,
    .cookie-notice__link {
        transition: none;
    }
}