.cookies-note {
    background-color: #fff;
    color: #000;
}
.cookies-note.cookies-note_top {
    background-color: #fbfbfb;
    border-bottom: 1px solid #d2d2d2;
}
.cookies-note.cookies-note_bottom {
    position: fixed;
    width: 100%;
    z-index: 1000;
    bottom: 0;
    left: 0;
    border-top: 1px solid #d2d2d2;
    background-color: rgba(251, 251, 251, 0.9);
}

#cookies_note > * {
    font-family: inherit;
}
#cookies_note a {
    color: #006bd8;
    text-decoration: underline;
}
#cookies_note a:hover {
    color: #ff0000;
    text-decoration: none;
}
.cookies-note__inner {
    position: relative;
    margin: 0 auto;
    max-width: 1200px;
    padding: 5px;
    line-height: 1.4;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
        -ms-flex-pack: justify;
            justify-content: space-between;
}
.cookies-note__inner.cookies-note__inner_center {
    -webkit-box-pack: center;
    -webkit-justify-content: center;
        -ms-flex-pack: center;
            justify-content: center;
}
.cookies-note__content {
    margin-right: 20px;
    position: relative;
    text-align: left;
    padding-right: 10px;
}
.cookies-note__title {
    margin-bottom: 5px;
    font-size: 16px;
}
.cookies-note__text {
    font-size: 12px;
}
#cookies_note button.cookies-note__continue,
#cookies_note button.cookies-note__continue:hover,
#cookies_note button.cookies-note__continue:active {
    background-color: #16a9b3;
    color: #fff;
    font-size: 13px;
    border: 1px solid;
    border-radius: 3px;
    padding: 8px;
    cursor: pointer;
    line-height: 1;
    outline: none;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.3);
     font-family: inherit;
}
#cookies_note button.cookies-note__continue:hover {
    background-color: #158f98;
}
#cookies_note button.cookies-note__continue:empty {
    display: none;
}

.cookies-note__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
}
#cookies_note button.cookies-note__btn-secondary,
#cookies_note button.cookies-note__btn-secondary:hover,
#cookies_note button.cookies-note__btn-secondary:active {
    background-color: transparent;
    color: #16a9b3;
    font-size: 13px;
    border: 1px solid #16a9b3;
    border-radius: 3px;
    padding: 8px;
    cursor: pointer;
    line-height: 1;
    outline: none;
    font-family: inherit;
}
#cookies_note button.cookies-note__btn-secondary:hover {
    background-color: #eef9fa;
}
#cookies_note.cookies-note_compact .cookies-note__actions {
    width: 100%;
}


.cookies-modal {
    position: fixed;
    inset: 0;
    z-index: 10001;
}
.cookies-modal[hidden] {
    display: none !important;
}
.cookies-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}
.cookies-modal__dialog {
    position: relative;
    width: calc(100% - 30px);
    max-width: 560px;
    max-height: calc(100vh - 30px);
    margin: 15px auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.cookies-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e5e5;
}
.cookies-modal__title {
    font-size: 18px;
    font-weight: 600;
    padding-right: 20px;
}
.cookies-modal__close {
    position: relative;
    width: 24px;
    height: 24px;
    border: 0;
    background: transparent;
    cursor: pointer;
    flex-shrink: 0;
}
.cookies-modal__close:before,
.cookies-modal__close:after {
    content: "";
    position: absolute;
    top: 11px;
    left: 4px;
    width: 16px;
    height: 2px;
    background: #333;
}
.cookies-modal__close:before {
    transform: rotate(45deg);
}
.cookies-modal__close:after {
    transform: rotate(-45deg);
}
.cookies-modal__body {
    padding: 12px 20px;
    overflow-y: auto;
}
.cookies-modal__footer {
    padding: 16px 20px;
    border-top: 1px solid #e5e5e5;
}
.cookies-modal__footer .cookies-note__continue {
    width: 100%;
}
.cookies-category {
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
}
.cookies-category:last-child {
    border-bottom: 0;
}
.cookies-category__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}
.cookies-category__title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}
.cookies-category__text {
    font-size: 13px;
    line-height: 1.45;
    color: #555;
}
.cookies-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}
.cookies-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}
.cookies-toggle__slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #ccc;
    border-radius: 24px;
    transition: background-color 0.2s;
}
.cookies-toggle__slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
}
.cookies-toggle input:checked + .cookies-toggle__slider {
    background-color: #16a9b3;
}
.cookies-toggle input:checked + .cookies-toggle__slider:before {
    transform: translateX(20px);
}
.cookies-toggle_disabled .cookies-toggle__slider {
    background-color: #9fd5da;
    cursor: default;
}
body.cookies-modal-active {
    overflow: hidden;
}

.cookies-note__close {
    position: absolute;
    top: -2px;
    right: -20px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}
.cookies-note__close:before,
.cookies-note__close:after {
    content: "";
    position: absolute;
    top: 9px;
    left: 3px;
    width: 12px;
    height: 2px;
    background: #333;
    opacity: 0.5;
    transition: opacity 0.2s;
}
.cookies-note__close:hover:before,
.cookies-note__close:hover:after {
    opacity: 1;
    transition: opacity 0.2s;
}
.cookies-note__close:before {
    -webkit-transform: rotate(45deg);
        -ms-transform: rotate(45deg);
            transform: rotate(45deg);
}
.cookies-note__close:after {
    -webkit-transform: rotate(-45deg);
        -ms-transform: rotate(-45deg);
            transform: rotate(-45deg);
}


#cookies_note.cookies-note_compact {
    position: fixed;
    width: 100%;
    z-index: 1000;
    width: 100%;
    max-width: 300px;
    bottom: 30px;
    border: 0;
    padding: 7px;
    border-radius: 7px;
    box-shadow: 0 .4rem .6rem rgba(0, 0, 0, .1);
    background-color: rgba(251, 251, 251, 0.9);
}
#cookies_note.cookies-note_compact .cookies-note__inner {
    max-width: 900px;
    flex-direction: column;
    gap: 7px;
    align-items: flex-start;
}
#cookies_note.cookies-note_compact .cookies-note__content {
    margin-right: 0;
    padding-right: 0;
}
#cookies_note.cookies-note_compact button.cookies-note__continue {

}
#cookies_note.cookies-note_compact button.cookies-note__continue,
#cookies_note.cookies-note_compact button.cookies-note__btn-secondary {
    width: 100%;
    max-width: none;
}
#cookies_note.cookies-note_compact .cookies-note__close {
    top: -4px;
    right: -7px;
}
#cookies_note.cookies-note_compact.--left {
    left: 30px;
}
#cookies_note.cookies-note_compact.--right {
    right: 30px;
}
#cookies_note:not(.cookies-note_compact) .cookies-note__content {
    flex:1;
}

@media screen and (max-width: 768px) {
    .cookies-note {
        position: fixed;
        width: 100%;
        z-index: 1000;
        bottom: 0;
        border-top: 1px solid #d2d2d2;
        background-color: rgba(251, 251, 251, 0.9);        
    }
    .cookies-note__inner {
        -webkit-flex-wrap: wrap;
            -ms-flex-wrap: wrap;
                flex-wrap: wrap;
    }
    .cookies-note__text {
        margin-bottom: 5px;
    }
    #cookies_note.cookies-note_compact {
        bottom: 15px;
    }
    #cookies_note.cookies-note_compact.--left {
        left: 15px;
    }
    #cookies_note.cookies-note_compact.--right {
        right: 15px;
    }
    .cookies-note__actions {
        width: 100%;
        justify-content: stretch;
    }
    #cookies_note button.cookies-note__continue,
    #cookies_note button.cookies-note__btn-secondary {
        width: 100%;
    }
    .cookies-modal__dialog {
        width: calc(100% - 20px);
        margin: 10px auto;
        max-height: calc(100vh - 20px);
    }
}