/* ══ Glejt Cookie Consent v1.0 — GDPR + ePrivacy ════════════════
   glejt.cz  |  2026-05-11
════════════════════════════════════════════════════════════════ */

/* ── Banner ──────────────────────────────────────────────────── */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 99990;
  background: #2D1654;
  border-top: 2px solid #C9A84C;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  font-family: 'IBM Plex Sans', sans-serif;
  box-shadow: 0 -4px 32px rgba(0,0,0,0.4);
  transform: translateY(110%);
  transition: transform 0.3s ease-out;
  will-change: transform;
  box-sizing: border-box;
}
#cookie-banner.ck-visible { transform: translateY(0); }
#cookie-banner.ck-hiding {
  transform: translateY(110%);
  transition: transform 0.2s ease-in;
}

.ck-left { display: flex; align-items: flex-start; gap: 14px; flex: 1; min-width: 0; }
.ck-left-text { display: flex; flex-direction: column; gap: 5px; }
.ck-title { font-size: 15px; font-weight: 600; color: #fff; }
.ck-desc {
  font-size: 13px; color: rgba(255,255,255,0.72);
  line-height: 1.55; max-width: 640px;
}
.ck-more { font-size: 12px; color: #C9A84C; text-decoration: none; }
.ck-more:hover { text-decoration: underline; }

.ck-btns { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* Přijmout vše — primární zlaté */
.ck-btn-prijm {
  background: #C9A84C; color: #1a0a2e;
  border: none; border-radius: 8px;
  padding: 9px 22px; font-size: 14px; font-weight: 600;
  cursor: pointer; font-family: inherit; white-space: nowrap;
  transition: background 0.15s;
}
.ck-btn-prijm:hover { background: #b8942f; }

/* Pouze nezbytné — outline */
.ck-btn-odmit {
  background: transparent; color: rgba(255,255,255,0.85);
  border: 1.5px solid rgba(255,255,255,0.45); border-radius: 8px;
  padding: 9px 22px; font-size: 14px; font-weight: 400;
  cursor: pointer; font-family: inherit; white-space: nowrap;
  transition: border-color 0.15s, color 0.15s;
}
.ck-btn-odmit:hover { border-color: rgba(255,255,255,0.8); color: #fff; }

/* Nastavení — text link */
.ck-btn-prizp {
  background: transparent; color: rgba(255,255,255,0.7);
  border: none; padding: 9px 4px; font-size: 13px;
  cursor: pointer; font-family: inherit;
  text-decoration: underline; white-space: nowrap;
}
.ck-btn-prizp:hover { color: #fff; }

/* ── Modal overlay ───────────────────────────────────────────── */
#cookie-modal-overlay {
  position: fixed; inset: 0;
  z-index: 99995;
  background: rgba(0,0,0,0.65);
  display: none;
  align-items: center; justify-content: center;
  padding: 16px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
#cookie-modal-overlay.ck-modal-open { display: flex; }

.ck-modal {
  background: #1e0e38;
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 16px;
  width: 100%; max-width: 560px; max-height: 88vh;
  display: flex; flex-direction: column;
  font-family: 'IBM Plex Sans', sans-serif;
  box-shadow: 0 24px 64px rgba(0,0,0,0.7);
  overflow: hidden;
}

.ck-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.09);
  flex-shrink: 0;
}
.ck-modal-head-title { font-size: 18px; font-weight: 600; color: #fff; }
.ck-modal-close {
  background: none; border: none; color: rgba(255,255,255,0.55);
  font-size: 26px; cursor: pointer; padding: 2px 8px; line-height: 1;
  border-radius: 6px; transition: color 0.15s, background 0.15s;
}
.ck-modal-close:hover { color: #fff; background: rgba(255,255,255,0.1); }

.ck-modal-body {
  flex: 1; overflow-y: auto; padding: 8px 24px 16px;
  scrollbar-width: thin;
  scrollbar-color: rgba(201,168,76,0.35) transparent;
}
.ck-modal-body::-webkit-scrollbar { width: 4px; }
.ck-modal-body::-webkit-scrollbar-thumb { background: rgba(201,168,76,0.35); border-radius: 2px; }

.ck-section { padding: 14px 0; }
.ck-section-hr { border: none; border-top: 1px solid rgba(255,255,255,0.07); margin: 0; }
.ck-section-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.ck-section-info { flex: 1; }
.ck-section-name { font-size: 15px; font-weight: 600; color: #fff; margin-bottom: 5px; }
.ck-section-desc { font-size: 13px; color: rgba(255,255,255,0.62); line-height: 1.55; margin-bottom: 4px; }
.ck-section-basis { font-size: 12px; color: rgba(201,168,76,0.8); margin-bottom: 3px; }
.ck-section-detail { font-size: 12px; color: rgba(255,255,255,0.4); line-height: 1.5; }

/* Toggle switch */
.ck-toggle { position: relative; display: inline-block; width: 46px; height: 26px; flex-shrink: 0; }
.ck-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.ck-toggle-slider {
  position: absolute; cursor: pointer; inset: 0;
  background: rgba(255,255,255,0.18); border-radius: 26px;
  transition: background 0.2s;
}
.ck-toggle-slider::before {
  content: ''; position: absolute;
  width: 20px; height: 20px; left: 3px; bottom: 3px;
  background: #fff; border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.ck-toggle input:checked + .ck-toggle-slider { background: #C9A84C; }
.ck-toggle input:checked + .ck-toggle-slider::before { transform: translateX(20px); }
.ck-toggle input:disabled + .ck-toggle-slider { opacity: 0.45; cursor: not-allowed; }
.ck-toggle-always { font-size: 10px; color: rgba(255,255,255,0.4); text-align: center; margin-top: 3px; }

.ck-modal-footer {
  display: flex; gap: 10px; padding: 16px 24px;
  border-top: 1px solid rgba(255,255,255,0.09);
  justify-content: flex-end; flex-shrink: 0;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) { #cookie-banner { padding: 16px 20px; gap: 16px; } }
@media (max-width: 720px) {
  #cookie-banner { flex-direction: column; align-items: stretch; gap: 14px; padding: 16px; }
  .ck-btns { flex-direction: column; gap: 8px; }
  .ck-btn-prijm, .ck-btn-odmit, .ck-btn-prizp { width: 100%; text-align: center; padding: 12px 20px; }
  .ck-modal-footer { flex-direction: column-reverse; }
  .ck-modal-footer .ck-btn-odmit, .ck-modal-footer .ck-btn-prijm { width: 100%; text-align: center; }
}
@media (max-width: 480px) {
  .ck-left { flex-direction: column; gap: 8px; }
  .ck-modal { max-height: 92vh; border-radius: 12px 12px 0 0; }
  #cookie-modal-overlay { align-items: flex-end; padding: 0; }
}
