/* Банер и настройки за бисквитки */
.kn-ck[hidden], .kn-ck-modal[hidden] { display: none !important; }
.kn-ck-lock, .kn-ck-lock body { overflow: hidden; }

.kn-ck {
    position: fixed; inset: 0; z-index: 9999;
    display: flex; align-items: flex-end; justify-content: center;
    background: rgba(20, 20, 24, .28);
    padding: 16px; box-sizing: border-box;
    font-family: 'Roboto Condensed', Arial, sans-serif;
}
.kn-ck-bar {
    display: flex; align-items: center; gap: 24px;
    width: 100%; max-width: 860px; box-sizing: border-box;
    background: #fff; color: #222;
    border-radius: 14px; padding: 22px 26px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .22);
    animation: knCkUp .35s ease-out;
}
.kn-ck-text { flex: 1; min-width: 0; }
.kn-ck-text h3 {
    display: flex; align-items: center; gap: 8px;
    margin: 0 0 6px; font-size: 19px; font-weight: 600; color: #111;
}
.kn-ck-text h3 img { width: 28px; height: 28px; }
.kn-ck-text p { margin: 0; font-size: 14.5px; line-height: 1.5; color: #444; }
.kn-ck a { color: #ad003b; text-decoration: underline; }
.kn-ck-btns { display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; min-width: 170px; }

.kn-ck-btn {
    font-family: inherit; font-size: 16px; font-weight: 600;
    border-radius: 10px; padding: 12px 22px; cursor: pointer;
    border: 1.5px solid #ad003b; line-height: 1.2;
    transition: background .15s, color .15s, border-color .15s;
}
.kn-ck-primary { background: #ad003b; color: #fff; }
.kn-ck-primary:hover { background: #8f0031; border-color: #8f0031; }
.kn-ck-ghost { background: #fff; color: #ad003b; }
.kn-ck-ghost:hover { background: #fbf0f4; }
.kn-ck-btn:focus-visible, .kn-ck-x:focus-visible { outline: 2px solid #ad003b; outline-offset: 2px; }

/* настройки */
.kn-ck-modal {
    position: fixed; inset: 0; z-index: 10000;
    display: flex; align-items: center; justify-content: center;
    background: rgba(20, 20, 24, .45);
    padding: 16px; box-sizing: border-box;
    font-family: 'Roboto Condensed', Arial, sans-serif;
}
.kn-ck-box {
    display: flex; flex-direction: column;
    width: 100%; max-width: 580px; max-height: calc(100vh - 32px);
    background: #fff; color: #222; border-radius: 14px;
    box-shadow: 0 14px 50px rgba(0, 0, 0, .3);
    animation: knCkUp .3s ease-out; overflow: hidden;
}
.kn-ck-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 22px; border-bottom: 1px solid #eee;
}
.kn-ck-head h3 { margin: 0; font-size: 19px; font-weight: 600; color: #111; }
.kn-ck-x {
    width: 34px; height: 34px; border: 0; border-radius: 50%;
    background: #f3f3f5; color: #333; font-size: 22px; line-height: 1; cursor: pointer;
}
.kn-ck-x:hover { background: #e8e8ec; }
.kn-ck-body { padding: 16px 22px 6px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.kn-ck-intro { margin: 0 0 14px; font-size: 14px; line-height: 1.5; color: #555; }
.kn-ck-cat { border: 1px solid #ececf0; border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; }
.kn-ck-cat-head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    cursor: default; margin: 0;
}
label.kn-ck-cat-head { cursor: pointer; }
.kn-ck-cat-head strong { font-size: 16px; font-weight: 600; color: #111; }
.kn-ck-cat p { margin: 6px 0 0; font-size: 13.5px; line-height: 1.45; color: #666; }
.kn-ck-always { font-size: 13px; font-weight: 600; color: #2e7d32; white-space: nowrap; }
.kn-ck-more { margin: 4px 0 10px; font-size: 14px; }
.kn-ck-more a { color: #ad003b; }
.kn-ck-foot {
    display: flex; gap: 10px; justify-content: flex-end;
    padding: 14px 22px; border-top: 1px solid #eee; background: #fafafa;
}

/* превключвател */
.kn-ck-sw { position: relative; display: inline-block; width: 46px; height: 26px; flex-shrink: 0; }
.kn-ck-sw input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.kn-ck-sw i {
    position: absolute; inset: 0; border-radius: 26px; background: #cfcfd6;
    transition: background .2s;
}
.kn-ck-sw i::after {
    content: ''; position: absolute; top: 3px; left: 3px;
    width: 20px; height: 20px; border-radius: 50%; background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s;
}
.kn-ck-sw input:checked + i { background: #ad003b; }
.kn-ck-sw input:checked + i::after { transform: translateX(20px); }
.kn-ck-sw input:focus-visible + i { outline: 2px solid #ad003b; outline-offset: 2px; }

@keyframes knCkUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

@media (max-width: 680px) {
    .kn-ck { padding: 10px; }
    .kn-ck-bar { flex-direction: column; align-items: stretch; gap: 14px; padding: 18px; }
    .kn-ck-btns { flex-direction: row; min-width: 0; }
    .kn-ck-btns .kn-ck-btn { flex: 1; }
    .kn-ck-modal { padding: 0; align-items: flex-end; }
    .kn-ck-box { max-width: none; max-height: 92vh; border-radius: 14px 14px 0 0; }
    .kn-ck-foot { flex-direction: column-reverse; }
    .kn-ck-foot .kn-ck-btn { width: 100%; }
}
