/* Orsen — cookies lišta + nastavení. Samostatné, ladí s paletou webu. */
.ck-banner, .ck-modal, .ck-overlay { box-sizing: border-box; }
.ck-banner *, .ck-modal * { box-sizing: border-box; }

/* ── Spodní lišta ── */
.ck-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 9999;
  max-width: 920px; margin: 0 auto;
  background: #1C1813; color: rgba(255,255,255,0.82);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  box-shadow: 0 22px 60px -24px rgba(0,0,0,0.55);
  padding: 22px 24px;
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  font-family: -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.9rem; line-height: 1.55;
  transform: translateY(140%); opacity: 0;
  transition: transform .45s cubic-bezier(.4,0,.2,1), opacity .45s ease;
}
.ck-banner.is-visible { transform: translateY(0); opacity: 1; }
.ck-banner__text { flex: 1 1 320px; min-width: 240px; }
.ck-banner__text strong { color: #fff; font-weight: 700; }
.ck-banner__text a { color: #F0971C; text-decoration: none; border-bottom: 1px solid rgba(240,151,28,0.4); }
.ck-banner__text a:hover { color: #fff; }
.ck-banner__actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ── Tlačítka ── */
.ck-btn {
  font: inherit; font-weight: 600; cursor: pointer;
  border-radius: 999px; padding: 11px 20px; border: 1px solid transparent;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
  white-space: nowrap;
}
.ck-btn:hover { transform: translateY(-1px); }
.ck-btn--primary { background: #F0971C; color: #1C1813; }
.ck-btn--primary:hover { background: #CE7D14; }
.ck-btn--ghost { background: transparent; color: rgba(255,255,255,0.85); border-color: rgba(255,255,255,0.25); }
.ck-btn--ghost:hover { border-color: #fff; color: #fff; }
.ck-btn--link { background: none; border: none; color: rgba(255,255,255,0.6); text-decoration: underline; padding: 11px 6px; }
.ck-btn--link:hover { color: #fff; }

/* ── Modal nastavení ── */
.ck-overlay {
  position: fixed; inset: 0; z-index: 10000; background: rgba(12,10,8,0.6);
  display: flex; align-items: center; justify-content: center; padding: 16px;
  opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s;
}
.ck-overlay.is-visible { opacity: 1; visibility: visible; }
.ck-modal {
  background: #FAF8F3; color: #1C1813; border-radius: 18px;
  max-width: 560px; width: 100%; max-height: 90vh; overflow-y: auto;
  padding: 32px 30px;
  font-family: -apple-system, "Helvetica Neue", Arial, sans-serif;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.5);
  transform: translateY(12px); transition: transform .3s ease;
}
.ck-overlay.is-visible .ck-modal { transform: translateY(0); }
.ck-modal__title { font-size: 1.4rem; font-weight: 700; margin: 0 0 8px; }
.ck-modal__lede { font-size: 0.92rem; color: #635C52; line-height: 1.6; margin: 0 0 20px; }
.ck-modal__lede a { color: #CE7D14; }
.ck-cat {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 0; border-top: 1px solid #EAE5DC;
}
.ck-cat__body { flex: 1; }
.ck-cat__name { font-weight: 700; font-size: 0.98rem; margin: 0 0 3px; }
.ck-cat__desc { font-size: 0.84rem; color: #635C52; line-height: 1.5; margin: 0; }

/* Přepínač */
.ck-switch { position: relative; width: 46px; height: 26px; flex-shrink: 0; margin-top: 2px; }
.ck-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.ck-switch__track {
  position: absolute; inset: 0; background: #C9C2B6; border-radius: 999px;
  transition: background .2s;
}
.ck-switch__track::before {
  content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px;
  background: #fff; border-radius: 50%; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,0.25);
}
.ck-switch input:checked + .ck-switch__track { background: #F0971C; }
.ck-switch input:checked + .ck-switch__track::before { transform: translateX(20px); }
.ck-switch input:disabled + .ck-switch__track { background: #9abf8e; opacity: 0.7; cursor: not-allowed; }
.ck-modal__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.ck-modal__actions .ck-btn--ghost { color: #1C1813; border-color: #D8D2C8; }
.ck-modal__actions .ck-btn--ghost:hover { border-color: #1C1813; }

@media (max-width: 600px) {
  .ck-banner { padding: 18px; gap: 14px; }
  .ck-banner__actions { width: 100%; }
  .ck-banner__actions .ck-btn { flex: 1 1 auto; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .ck-banner, .ck-overlay, .ck-modal, .ck-switch__track::before { transition: none; }
}
