/* ── Cookie Consent Banner ──────────────────────────────────────────────── */

#si-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  background: #fff;
  border-top: 1px solid #e5e7eb;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, .10);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  color: #1f2937;

  /* slide-up animation */
  transform: translateY(100%);
  opacity: 0;
  transition: transform .35s cubic-bezier(.4, 0, .2, 1),
              opacity   .35s ease;
}

#si-cookie-banner.si-cc--visible {
  transform: translateY(0);
  opacity: 1;
}

.si-cc-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
}

/* ── Hlavní řádek ──────────────────────────────────────────────────────── */

.si-cc-main {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.si-cc-text {
  flex: 1 1 300px;
  margin: 0;
  color: #374151;
}

.si-cc-text strong {
  color: #111827;
}

.si-cc-text a {
  color: #4f46e5;
  text-decoration: underline;
}

.si-cc-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* ── Tlačítka ──────────────────────────────────────────────────────────── */

.si-cc-btn {
  padding: 8px 18px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
  transition: background .15s, color .15s, box-shadow .15s;
}

.si-cc-btn--primary {
  background: #4f46e5;
  color: #fff;
}
.si-cc-btn--primary:hover {
  background: #4338ca;
}

.si-cc-btn--secondary {
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #d1d5db;
}
.si-cc-btn--secondary:hover {
  background: #e5e7eb;
}

.si-cc-btn--ghost {
  background: transparent;
  color: #6b7280;
  border: 1px solid #d1d5db;
}
.si-cc-btn--ghost:hover {
  background: #f9fafb;
  color: #374151;
}

/* ── Nastavení (rozbalitelný panel) ─────────────────────────────────────── */

.si-cc-settings {
  margin-top: 16px;
  border-top: 1px solid #e5e7eb;
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.si-cc-cat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: #f9fafb;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.si-cc-cat-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.si-cc-cat-info strong {
  font-size: 14px;
  color: #111827;
}

.si-cc-cat-info span {
  font-size: 12px;
  color: #6b7280;
}

/* ── Toggle switch ─────────────────────────────────────────────────────── */

.si-cc-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  cursor: pointer;
}

.si-cc-toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.si-cc-toggle-track {
  width: 44px;
  height: 24px;
  background: #d1d5db;
  border-radius: 12px;
  transition: background .2s;
  position: relative;
}

.si-cc-toggle-track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
  transition: transform .2s;
}

.si-cc-toggle input:checked + .si-cc-toggle-track {
  background: #4f46e5;
}

.si-cc-toggle input:checked + .si-cc-toggle-track::after {
  transform: translateX(20px);
}

.si-cc-toggle input:focus-visible + .si-cc-toggle-track {
  outline: 2px solid #4f46e5;
  outline-offset: 2px;
}

.si-cc-toggle--locked {
  cursor: not-allowed;
  opacity: .55;
}

/* ── Uložit tlačítko ───────────────────────────────────────────────────── */

.si-cc-settings-save {
  display: flex;
  justify-content: flex-end;
}

/* ── Mobilní layout ────────────────────────────────────────────────────── */

@media (max-width: 600px) {
  .si-cc-inner {
    padding: 14px 16px;
  }

  .si-cc-main {
    flex-direction: column;
    align-items: flex-start;
  }

  .si-cc-actions {
    width: 100%;
  }

  .si-cc-btn {
    flex: 1 1 auto;
    text-align: center;
  }
}
