/*
====================================================================

Cookie-баннер

Значения (цвета, отступы, радиусы) взяты 1:1 из референсного сниппета
_PREVIEW/Third-party-links.md (раздел «Cookie banner»). Палитра
(#1a1a2e, #4a6cf7 и т.д.) осознанно не завязана на токены темы -
баннер должен быть заметен поверх любой секции сайта.

Классы .ck-banner__message/.ck-banner__title/.ck-banner__link/
.ck-banner__actions/.ck-settings__actions заменяют инлайновые
style="" сниппета - значения те же, но вынесены из разметки.

====================================================================
*/

#ck-banner,
#ck-settings {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999999;
    background: #1a1a2e;
    color: #fff;
    font-family: inherit;
    box-shadow: 0 -2px 16px rgba(0, 0, 0, .35);
}

#ck-banner {
    padding: 14px 20px;
    display: none;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

#ck-settings {
    display: none;
    padding: 20px;
    max-width: 520px;
    left: 50%;
    right: auto;
    bottom: 20px;
    transform: translateX(-50%);
    border-radius: 10px;
}

#ck-banner p {
    margin: 4px 0 0;
    font-size: 13px;
    color: #aac;
    line-height: 1.5;
}

#ck-settings h3 {
    margin: 0 0 14px;
    font-size: 15px;
    font-weight: 600;
}

.ck-banner__message {
    flex: 1;
    min-width: 220px;
    text-align: center;
}

.ck-banner__title {
    font-size: 14px;
}

.ck-banner__link {
    color: #7eb8f7;
}

.ck-banner__actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.ck-settings__actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    justify-content: flex-end;
}

.ck-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #2e2e4a;
}

.ck-row:last-of-type {
    border-bottom: none;
}

.ck-label {
    font-size: 13px;
    line-height: 1.4;
}

.ck-label span {
    display: block;
    font-size: 11px;
    color: #888aaa;
    margin-top: 2px;
}

.ck-toggle {
    position: relative;
    width: 40px;
    height: 22px;
    flex-shrink: 0;
}

.ck-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.ck-slider {
    position: absolute;
    inset: 0;
    background: #333355;
    border-radius: 11px;
    cursor: pointer;
    transition: .2s;
}

.ck-slider::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: .2s;
}

.ck-toggle input:checked + .ck-slider {
    background: #4a6cf7;
}

.ck-toggle input:checked + .ck-slider::before {
    transform: translateX(18px);
}

.ck-toggle input:disabled + .ck-slider {
    opacity: .5;
    cursor: not-allowed;
}

.ck-btn {
    padding: 9px 18px;
    font-size: 13px;
    border-radius: 6px;
    cursor: pointer;
    border: none;
    font-weight: 500;
}

.ck-btn-outline {
    background: transparent;
    border: 1px solid #555;
    color: #aac;
}

.ck-btn-primary {
    background: #4a6cf7;
    color: #fff;
}


/*
 * Узкие экраны: ряд кнопок не жмётся в max-content (наследие
 * сниппета) - на 320px «Принять всё» уезжала за край. Разрешаем
 * ряду сжиматься и переноситься; десктоп не меняется.
 */
@media (max-width: 420px) {

    .ck-banner__actions {
        flex-shrink: 1;
        width: 100%;
        justify-content: center;
    }

}
