/* Согласие на cookie (gitlab #11, js/cookie_consent.js): плашка и окно настроек — общие для старого и нового шаблона */

.cc-banner, .cc-modal {
    font-family: inherit;
    font-size: 14px;
    line-height: 1.4;
    color: #222;
    box-sizing: border-box;
}
.cc-banner *, .cc-modal * {
    box-sizing: border-box;
}
.cc-banner a, .cc-modal a {
    color: inherit;
    text-decoration: underline;
}
.cc-banner a:hover, .cc-modal a:hover {
    color: #e43a2d;
}

/* плашка — в оформлении прежней плашки с прода (.cookies-banner в common.css): тёмная полупрозрачная,
   белый текст, красная кнопка; прижата к правому краю */
.cc-banner {
    position: fixed;
    right: 0;
    bottom: 50px;
    z-index: 10000;
    max-width: 600px;
    padding: 6px;
    background: #3f3f3f;
    color: #fff;
    opacity: .9;
    border-radius: 4px 0 0 4px;
    box-shadow: 0 0 15px #4d4d4d;
    line-height: normal;
}
.cc-banner__text {
    margin: 0;
}
.cc-banner .cc-banner__buttons {
    margin-top: 2px;
}
.cc-banner .cc-btn {
    min-width: 0;
    margin: 2px;
    padding: 4px 7px;
    border-radius: 4px;
    font-size: 13px;
}
.cc-banner__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.cc-btn {
    min-width: 140px;
    padding: 10px 18px;
    border: 1px solid #e43a2d;
    border-radius: 6px;
    background: #e43a2d;
    color: #fff;
    font: inherit;
    font-weight: 700;
    text-transform: none;
    cursor: pointer;
    box-shadow: none;
}
.cc-btn:hover {
    background: #c7281c;
    border-color: #c7281c;
}
/* на плашке одна кнопка «Согласен» — справа; «Настроить» — ссылка в тексте */
.cc-banner .cc-banner__buttons {
    justify-content: flex-end;
}
.cc-btn_secondary {
    background: #fff;
    color: #e43a2d;
}
.cc-btn_secondary:hover {
    background: #fdecea;
    color: #c7281c;
}

.cc-modal {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, .5);
}
.cc-modal__box {
    width: 100%;
    max-width: 560px;
    max-height: 100%;
    overflow-y: auto;
    padding: 20px 24px;
    background: #fff;
    border-radius: 8px;
}
.cc-modal__title {
    margin: 0 0 12px;
    font-size: 20px;
    font-weight: 700;
}
.cc-modal__note {
    margin: 12px 0;
    color: #666;
    font-size: 13px;
}

.cc-group {
    position: relative;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin: 0;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    font-weight: normal;
}
.cc-group_locked {
    cursor: default;
}
.cc-group input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}
.cc-group__switch {
    flex: 0 0 40px;
    position: relative;
    width: 40px;
    height: 22px;
    margin-top: 1px;
    border-radius: 11px;
    background: #ccc;
    transition: background .15s;
}
.cc-group__switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    transition: left .15s;
}
.cc-group input:checked + .cc-group__switch {
    background: #e43a2d;
}
.cc-group_locked input:checked + .cc-group__switch {
    background: #f19a92;
}
.cc-group input:checked + .cc-group__switch::after {
    left: 20px;
}
.cc-group input:focus-visible + .cc-group__switch {
    outline: 2px solid #222;
    outline-offset: 2px;
}
.cc-group__text b {
    display: block;
    margin-bottom: 2px;
}

@media (max-width: 767px) {
    /* над нижней панелью меню на телефоне */
    .cc-banner {
        left: 8px;
        right: 8px;
        max-width: none;
        border-radius: 4px;
    }
    .cc-modal .cc-btn {
        flex: 1 1 0;
        min-width: 0;
    }
}
