/* ════════════════════════════════════════════════════════════════════
   Cookie Consent — styly
   Tlačítka „Přijmout" a „Odmítnout" jsou ve stejné vrstvě, stejné
   velikosti a srovnatelné vizuální váhy (požadavek ÚOOÚ).
   ════════════════════════════════════════════════════════════════════ */

.cm-banner, .cm-settings, .cm-float { box-sizing: border-box; }
.cm-banner *, .cm-settings * { box-sizing: border-box; }

/* ─── BANNER (sticky panel dole, přes celou šířku) ─── */
.cm-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 999999;
  background: #ffffff;
  border-top: 3px solid #10B981;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.12);
  transform: translateY(120%);
  transition: transform .35s cubic-bezier(.16,1,.3,1);
  font-family: inherit;
}
.cm-banner.cm-show { transform: translateY(0); }

.cm-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cm-text { flex: 1 1 380px; min-width: 260px; }
.cm-text strong { display: block; font-size: 16px; color: #10171F; margin-bottom: 4px; }
.cm-text p { margin: 0; font-size: 13.5px; line-height: 1.55; color: #4b5563; }
.cm-text a { color: #059669; text-decoration: underline; }

.cm-actions {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
  flex-wrap: wrap;
  align-items: center;
}

/* ─── TLAČÍTKA — vyvážená ─── */
.cm-btn {
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .15s ease;
  line-height: 1.2;
  white-space: nowrap;
}
/* Primární i sekundární mají STEJNOU velikost. Rozdíl je jen decentní
   (plná vs. outline) — souhlas není výrazně barevnější ani větší. */
.cm-btn-primary {
  background: #10B981;
  color: #ffffff;
  border-color: #10B981;
}
.cm-btn-primary:hover { background: #059669; border-color: #059669; }
.cm-btn-secondary {
  background: #ffffff;
  color: #10171F;
  border-color: #cbd5e1;
}
.cm-btn-secondary:hover { background: #f1f5f9; border-color: #94a3b8; }

/* ─── SETTINGS (druhá vrstva, modal) ─── */
.cm-settings {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  background: rgba(16,23,31,0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.cm-settings.cm-show { display: flex; }
.cm-settings-box {
  background: #fff;
  border-radius: 14px;
  max-width: 560px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  padding: 26px 28px;
  font-family: inherit;
}
.cm-settings-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.cm-settings-head h2 { margin: 0; font-size: 20px; color: #10171F; }
.cm-close {
  background: none; border: none; font-size: 30px; line-height: 1;
  color: #9ca3af; cursor: pointer; padding: 0 4px;
}
.cm-close:hover { color: #4b5563; }

.cm-cat {
  padding: 16px 0;
  border-bottom: 1px solid #eef1f4;
}
.cm-cat:last-of-type { border-bottom: none; }
.cm-cat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.cm-cat-name { font-size: 15px; font-weight: 700; color: #10171F; }
.cm-cat-always { font-size: 12.5px; font-weight: 600; color: #10B981; }
.cm-cat p { margin: 0; font-size: 13px; line-height: 1.5; color: #6b7280; }

/* ─── Přepínač ─── */
.cm-switch { position: relative; display: inline-block; width: 44px; height: 24px; flex: 0 0 auto; }
.cm-switch input { opacity: 0; width: 0; height: 0; }
.cm-slider {
  position: absolute; cursor: pointer; inset: 0;
  background: #cbd5e1; border-radius: 24px; transition: .2s;
}
.cm-slider:before {
  content: ""; position: absolute; height: 18px; width: 18px;
  left: 3px; bottom: 3px; background: #fff; border-radius: 50%; transition: .2s;
}
.cm-switch input:checked + .cm-slider { background: #10B981; }
.cm-switch input:checked + .cm-slider:before { transform: translateX(20px); }

.cm-settings-actions {
  display: flex;
  gap: 10px;
  margin-top: 22px;
  flex-wrap: wrap;
}
.cm-settings-actions .cm-btn { flex: 1 1 auto; text-align: center; }

/* ─── Plovoucí tlačítko ─── */
.cm-float {
  position: fixed;
  left: 18px; bottom: 18px;
  z-index: 999998;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #10B981;
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(16,185,129,0.4);
  transition: transform .15s ease, background .15s ease;
  opacity: .85;
}
.cm-float:hover { transform: scale(1.08); background: #059669; opacity: 1; }

/* ─── Mobil ─── */
@media (max-width: 640px) {
  .cm-banner-inner { padding: 16px; gap: 14px; }
  .cm-actions { width: 100%; }
  .cm-actions .cm-btn { flex: 1 1 auto; text-align: center; }
  .cm-settings-actions { flex-direction: column; }
  .cm-float { width: 40px; height: 40px; left: 14px; bottom: 14px; }
}
