.cookie-root {
    background: #fff;
    box-shadow: 0 3px 14px rgba(0, 0, 0, .18);
    padding: 18px 20px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 7000;
    font-size: 14px;
    display: none;
    box-sizing: border-box;
}

.cookie-inner {
    display: block;
    box-sizing: border-box;
    margin: 0 auto;
    max-width: 1140px;
    min-width: 320px;
}

.cookie-text {
    color: #242629;
    letter-spacing: normal;
    margin: 0;
    padding: 0;
    text-decoration: none;
    text-indent: 0;
    text-shadow: none;
    text-transform: none;
}

.cookie-title {
    color: #242629;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 8px;
}

.cookie-description {
    color: #737476;
    font-size: 14px;
    line-height: 1.45;
    max-height: 42px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.cookie-root.open .cookie-description {
    display: block;
    max-width: 100%;
    max-height: none;
    overflow: visible;
}

.cookie-description a {
    color: #242629;
    text-decoration: none;
    border-bottom: 1px solid rgba(36, 38, 41, .12);
    transition: all .3s;
}

.cookie-description a:hover {
    border-bottom-color: #242629;
    color: #242629;
}

.cookie-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 14px;
}

.cookie-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 9px 18px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    transition: all .3s;
    border-radius: 3px;
    cursor: pointer;
    white-space: nowrap;
}

.cookie-button--primary {
    color: #fff;
    background-color: #242629;
    border: 1px solid transparent;
}

.cookie-button--primary:hover {
    background-color: #fd314b;
}

.cookie-button--secondary {
    color: #fd314b;
    background-color: transparent;
    border: 1px solid #fd314b;
}

.cookie-button--secondary:hover {
    color: #fff;
    background-color: #fd314b;
}

.cookie-settings {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 22px;
    visibility: hidden;
    opacity: 0;
    height: 0;
    overflow: hidden;
    margin-top: 0;
    transition: opacity .3s, margin-top .3s;
}

.cookie-root.open .cookie-settings {
    visibility: visible;
    opacity: 1;
    height: auto;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #e4e8ee;
    overflow: visible;
}

.cookie-setting {
    display: block;
    color: #242629;
    cursor: pointer;
    padding-right: 8px;
}

.cookie-setting-required {
    cursor: not-allowed;
}

.cookie-setting-required .cookie-setting-head,
.cookie-setting-required .cookie-switch,
.cookie-setting-required .cookie-setting-description {
    cursor: not-allowed;
}

.cookie-setting-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 8px;
}

.cookie-setting-title {
    font-weight: 700;
    line-height: 1.35;
}

.cookie-setting-lock {
    display: block;
    color: #8b96a7;
    font-size: 12px;
    font-weight: 400;
    margin-top: 2px;
}

.cookie-setting-description {
    display: block;
    color: #737476;
    font-size: 13px;
    line-height: 1.45;
    max-width: 430px;
}

.cookie-setting-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.cookie-switch {
    position: relative;
    display: inline-block;
    flex-shrink: 0;
    width: 36px;
    height: 20px;
    border-radius: 20px;
    background-color: #8b96a7;
    transition: background-color .3s, opacity .3s, box-shadow .3s;
}

.cookie-switch:before {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
    transition: transform .3s;
}

.cookie-setting-input:checked + .cookie-switch {
    background-color: #fd314b;
}

.cookie-setting-input:checked + .cookie-switch:before {
    transform: translateX(16px);
}

.cookie-setting-input:focus + .cookie-switch {
    box-shadow: 0 0 0 3px rgba(253, 49, 75, .18);
}

.cookie-setting-input:disabled + .cookie-switch {
    background-color: #fd314b;
    opacity: .55;
    box-shadow: inset 0 0 0 1px rgba(36, 38, 41, .22);
}

.cookie-setting-required:hover .cookie-switch {
    opacity: .38;
    box-shadow: inset 0 0 0 1px rgba(36, 38, 41, .35);
}

.cookie-setting-required:hover .cookie-setting-lock {
    color: #d9534f;
}

@media (max-width: 900px) {
    .cookie-root {
        padding: 16px;
    }

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

    .cookie-settings {
        gap: 16px;
    }
}

@media (max-width: 640px) {
    .cookie-root {
        max-height: none;
        overflow-y: visible;
        padding: 14px;
    }

    .cookie-root.open {
        max-height: calc(100vh - 16px);
        overflow-y: auto;
    }

    @supports (height: 100dvh) {
        .cookie-root.open {
            max-height: calc(100dvh - 16px);
        }
    }

    .cookie-title {
        font-size: 15px;
        margin-bottom: 6px;
    }

    .cookie-description {
        font-size: 13px;
        line-height: 1.4;
        -webkit-line-clamp: 2;
    }

    .cookie-root.open .cookie-description {
        max-height: none;
        overflow: visible;
    }

    .cookie-settings {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .cookie-root.open .cookie-settings {
        margin-top: 14px;
        padding-top: 14px;
    }

    .cookie-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 9px;
        margin-top: 12px;
    }

    .cookie-button {
        width: 100%;
        min-height: 36px;
        padding: 8px 14px;
        white-space: normal;
    }
}
