/* Overlay pro banner */
#analytics-consent {
  display: block !important;
}
#analytics-consent #consent-overlay {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 2000;
  background: rgba(0,0,0,0.25);
}

#analytics-consent #consent-banner {
  display: none;
  position: fixed;
  bottom: 18px;
  left: 16px;
  right: 16px;
  z-index: 2100;
  width: 100%;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;

  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  padding: 18px;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  font-family: system-ui, "Segoe UI", Roboto, Arial;
}
#analytics-consent #consent-banner .text {
  flex: 1;
  font-size: 14px;
  color: #222;
  min-width: 220px;
}
#analytics-consent #consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#analytics-consent .btn { padding: 10px 14px;}
#analytics-consent .btn-ghost { background: transparent; border: 1px solid #ddd; color: #222; }
#analytics-consent .btn-link { background: transparent; color: #0b69ff; padding: 8px; font-weight:600; border-radius:8px; border:none; }

/* Panel pro detailní nastavení */
#analytics-consent #consent-panel {
  display:none; position: fixed; right: 20px; top: 20px; width: 360px;
  max-width: calc(100% - 40px);
  background: #fff; border-radius: 12px; box-shadow: 0 12px 40px rgba(0,0,0,0.18);
  z-index: 100000; padding: 18px; font-family: inherit;
}
#consent-panel h3 { margin: 0 0 8px 0; font-size: 16px; }
#analytics-consent #consent-panel .category-row { display:flex; align-items:flex-start; gap:10px; padding:10px 6px; border-bottom: 1px solid #f0f0f0; }
#analytics-consent #consent-panel .category-row:last-child { border-bottom: none; }
#analytics-consent #consent-panel .category-info { flex:1; }
#analytics-consent #consent-panel .category-name { font-weight:700; margin-bottom:4px; }
#analytics-consent #consent-panel .category-desc { margin:0; font-size:13px; color:#444; }
#analytics-consent #consent-panel .toggle { display:flex; align-items:center; gap:8px; }

#consent-open-button {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 2050;
  display: none;
  background: #111;
  color:#fff;
  border-radius: 999px;
  border:none;
  padding: 10px 14px;
  cursor:pointer;
  font-weight:700;
  box-shadow:0 6px 20px rgba(0,0,0,0.2);
  opacity: 0.1;
  transition: opacity .2s ease;
}
#consent-open-button:hover { opacity: 1; }

/* switch */
#analytics-consent .switch {
  --w:44px; --h:24px;
  width: var(--w); height: var(--h);
  background: #e6e6e6; border-radius: 999px;
  position: relative; cursor: pointer;
}
#analytics-consent .switch .knob {
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff; position: absolute; top: 3px; left: 3px;
  transition: transform .18s ease, left .18s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}
#analytics-consent .switch.on { background: #0b69ff; }
#analytics-consent .switch.on .knob { transform: translateX(20px); }
#analytics-consent .small-note { font-size:12px; color:#666; margin-top:8px; }

@media (max-width: 960px) {
  #analytics-consent #consent-banner {
    flex-direction: column;
    align-items: stretch;
    width: auto;
    max-width: 100%;
  }
  #analytics-consent #consent-actions {
    width: 100%;
    justify-content: space-between;
  }
}