/* cookie-consent.css — банер згоди + модалка налаштувань. Токени --sh-* (перемикаються у theme.css). */
.ck-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1000;
  max-width: 760px; margin: 0 auto; background: var(--sh-surface); color: var(--sh-gray-900);
  border: 1px solid var(--sh-border); border-radius: 16px; box-shadow: 0 16px 44px rgba(0,0,0,.24);
  font-family: 'Geologica', sans-serif; padding: 16px 18px;
}
.ck-banner[hidden] { display: none; }
.ck-banner-in { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.ck-b-text { flex: 1 1 320px; min-width: 260px; }
.ck-b-text strong { display: block; font-size: 14.5px; font-weight: 700; margin-bottom: 3px; }
.ck-b-text p { margin: 0; font-size: 13px; line-height: 1.55; color: var(--sh-gray-dark); }
.ck-b-text a { color: var(--sh-blue); }
.ck-b-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ck-btn {
  font-family: 'Unbounded', sans-serif; font-size: 11.5px; font-weight: 600; letter-spacing: .01em;
  border-radius: 9px; padding: 11px 16px; cursor: pointer; border: 1px solid var(--sh-border);
  background: var(--sh-surface-2); color: var(--sh-gray-900); white-space: nowrap; transition: .15s;
}
.ck-btn:hover { border-color: var(--sh-blue); }
.ck-btn.ck-primary { background: var(--sh-blue); color: #fff; border-color: var(--sh-blue); }
.ck-btn.ck-primary:hover { background: var(--sh-blue-light); border-color: var(--sh-blue-light); }
@media (max-width: 768px) {
  .ck-banner { bottom: 62px; left: 10px; right: 10px; padding: 14px 15px; }
  .ck-b-actions { width: 100%; }
  .ck-b-actions .ck-btn { flex: 1 1 auto; text-align: center; }
}

.ck-modal { position: fixed; inset: 0; z-index: 1100; display: flex; align-items: center; justify-content: center; padding: 18px; }
.ck-modal[hidden] { display: none; }
.ck-modal-bg { position: absolute; inset: 0; background: rgba(15,23,42,.5); }
.ck-modal-card {
  position: relative; width: 100%; max-width: 480px; max-height: 88vh; overflow-y: auto;
  background: var(--sh-surface); color: var(--sh-gray-900); border: 1px solid var(--sh-border);
  border-radius: 18px; box-shadow: 0 24px 60px rgba(0,0,0,.4); font-family: 'Geologica', sans-serif; padding: 22px;
}
.ck-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.ck-modal-head h2 { font-family: 'Unbounded', sans-serif; font-size: 18px; font-weight: 700; margin: 0; color: var(--sh-gray-900); }
.ck-x { width: 34px; height: 34px; flex: 0 0 auto; border: none; background: var(--sh-surface-2); border-radius: 9px; color: var(--sh-gray-900); display: grid; place-items: center; cursor: pointer; }
.ck-x svg { width: 18px; height: 18px; }
.ck-modal-desc { font-size: 13px; color: var(--sh-gray-dark); margin: 0 0 14px; line-height: 1.55; }
.ck-cat { border-top: 1px solid var(--sh-border); padding: 14px 0; }
.ck-cat-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ck-cat-name { font-family: 'Unbounded', sans-serif; font-size: 14px; font-weight: 600; color: var(--sh-gray-900); }
.ck-locked { font-size: 11.5px; font-weight: 700; color: var(--sh-gray); }
.ck-cat-desc { font-size: 12.5px; color: var(--sh-gray); margin: 6px 0 0; line-height: 1.5; }
.ck-sw { position: relative; display: inline-block; width: 44px; height: 24px; flex: 0 0 auto; cursor: pointer; }
.ck-sw input { position: absolute; opacity: 0; width: 0; height: 0; }
.ck-sw span { position: absolute; inset: 0; background: var(--sh-border); border-radius: 999px; transition: .2s; }
.ck-sw span::after { content: ""; position: absolute; top: 2.5px; left: 2.5px; width: 19px; height: 19px; border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.ck-sw input:checked + span { background: var(--sh-accent); }
.ck-sw input:checked + span::after { left: 22.5px; }
.ck-sw input:focus-visible + span { outline: 2px solid var(--sh-blue); outline-offset: 2px; }
.ck-modal-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.ck-modal-actions .ck-btn { flex: 1 1 auto; text-align: center; }
