.cookie {
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
    bottom: 0;
    background-color: #121239;
    z-index: 200;
    font-size: 14px;
    line-height: 18px;
    -webkit-transition: .3s ease;
    -moz-transition: .3s ease;
    -ms-transition: .3s ease;
    -o-transition: .3s ease;
    transition: .3s ease;
    color: #ffffff;
    display: none;
}
.cookie.active {
    display: block;
}
.cookie a {
    color: #7949F4;
    text-decoration: none;
    background: no-repeat 0 100%;
    background-image: linear-gradient(currentColor, currentColor);
    background-size: 0% 1px;
    -webkit-transition: background-size .3s ease;
    -moz-transition: background-size .3s ease;
    -ms-transition: background-size .3s ease;
    -o-transition: background-size .3s ease;
    transition: background-size .3s ease;
    padding-bottom: 2px;
}

.cookie a:hover {
    background-size: 100% 1px;
}

.cookie__panel {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    text-align: center;
    padding: 24px 30px;
}

.cookie__text a {
    color: #7949f4;
}

.cookie__panel-buttons {
    display: flex;
    gap: 20px;
}

.cookie__btn {
    padding: 8px 16px;
    cursor: pointer;
    white-space: nowrap;
    -webkit-transition: .3s ease;
    -moz-transition: .3s ease;
    -ms-transition: .3s ease;
    -o-transition: .3s ease;
    transition: .3s ease;
    font-weight: 700;
    line-height: 1.6;
    border: 1px solid transparent;
}

.cookie__btn--violet {
    border: 1px solid #7949f4;
    background: #7949f4;
}

.cookie__btn--violet:hover {
    background-color: #ffffff;
    color: #121239;
    border-color: #ffffff;
}

.cookie__btn--transparent {
    font-weight: 700;
}

.cookie__btn--transparent:hover {
    color: #7949f4;
}

.cookie__settings {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
    padding: 34px 30px;
}

.cookie__settings-group {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.cookie__settings-buttons {
    width: 100%;
    display: flex;
    gap: 20px;
    justify-content: flex-end;
}

.cookie__panel,
.cookie__settings {
    transition: opacity 0.3s ease;
    opacity: 0;
    display: none;
}

.cookie__panel.active,
.cookie__settings.active {
    opacity: 1;
    display: flex;
}

.cookie__settings-option {
    cursor: pointer;
    display: flex;
    gap: 10px;
}

.cookie__settings-option input {
    display: none;
}

.cookie__settings-label {
    position: relative;
    display: flex;
    gap: 8px;
    align-items: center;
}

.cookie__settings-label:before {
    content: '';
    width: 20px;
    height: 20px;
    border-radius: 6px;
    background: #7949F4;
    display: block;
}

.cookie__settings-option input:checked + .cookie__settings-label::after {
    content: '';
    position: absolute;
    left: 8px;
    bottom: 5px;
    width: 4px;
    height: 10px;
    border-bottom: 1px solid;
    border-right: 1px solid;
    border-color: #121239;
    transform: rotate(45deg);

}

.cookie__settings-option input:disabled + .cookie__settings-label::before {
    background: #331A73;
}

.cookie__settings-label svg {
    width: 20px;
    height: 20px;
}

.cookie__tooltip-toggle {
    position: relative;
    width: 20px;
    height: 20px;
    border: 0;
}

.cookie__tooltip:after {
    position: absolute;
    content: '';
    width: 100%;
    height: 30px;
    left: 0;
    top: 100%;
}

.cookie__tooltip-icon {
    width: 20px;
    height: 20px;
}

.cookie__tooltip-toggle:hover .cookie__tooltip {
    bottom: calc(100% + 5px);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.cookie__tooltip {
    position: absolute;
    bottom: 50%;
    font-weight: 400;
    text-align: center;
    background: #ffffff;
    color: #000000;
    border-radius: 8px;
    box-shadow: 0px 8px 16px -2px rgba(27, 33, 44, 0.10);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    width: 550px;
    left: 50%;
    transform: translate(-50%);
    padding: 12px;
    z-index: 2;
    font-size: 16px;
    line-height: 20px;
    white-space: normal;
}

.cookie__tooltip::before {
    position: absolute;
    content: "";
    height: 8px;
    width: 8px;
    background: #ffffff;
    bottom: -3px;
    left: 50%;
    transform: translate(-50%) rotate(45deg);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}


@media (max-width: 991px) {
    .cookie__tooltip-icon {
        display: none;
    }

    .cookie__settings-option {
        flex-direction: column;
    }

    .cookie__tooltip-toggle {
        width: 100%;
        height: auto;
    }

    .cookie__tooltip {
        position: static;
        opacity: 1;
        pointer-events: all;
        background: transparent;
        transform: unset;
        color: #909090;
        font-size: 14px;
        font-weight: 500;
        line-height: 18px;
        display: block;
        text-align: left;
        padding: 0;
        width: 100%;
    }

    .cookie__tooltip::before {
        display: none;
    }

    .cookie__settings {
        gap: 24px;
    }

    .cookie__settings-group {
        gap: 24px;
    }
}

@media (max-width: 767px) {
    .cookie {
        max-height: 100vh;
        overflow: auto;
    }

    .cookie__panel {
        gap: 13px;
        text-align: left;
        flex-direction: column;
        padding: 16px;
    }

    .cookie__panel-buttons {
        width: 100%;
    }

    .cookie__settings {
        max-width: 100%;
        padding: 34px 20px 20px;
    }

    .cookie__btn {
        flex: 1;
        min-width: 0;
        text-align: center;
    }
}


.cookie-open {
    cursor: pointer;
    transition: .3s ease;
}
.cookie-open:hover {
    color: #7949F4;
}
.cookie-open--white {
    color: #ffffff;
}
.cookie-open--white:hover {
    color: #7949f3;
}