/* ULOV KLIENTY — Cookie Consent (banner + nastavení) */

.ulov-cc-lock {
  overflow: hidden;
}

.ulov-cc-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9990;
  padding: 1rem;
  background: rgba(8, 20, 34, 0.96);
  border-top: 1px solid rgba(240, 215, 140, 0.28);
  color: #f5f0e6;
  font-family: "DM Sans", system-ui, sans-serif;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.35);
}

.ulov-cc-banner--hidden {
  display: none !important;
}

.ulov-cc-banner__inner {
  width: min(1100px, 100%);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: flex-end;
  justify-content: space-between;
}

.ulov-cc-banner__copy {
  flex: 1 1 28rem;
  min-width: 0;
}

.ulov-cc-banner__title {
  margin: 0 0 0.45rem;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #f0d78c;
}

.ulov-cc-banner__text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(245, 240, 230, 0.88);
}

.ulov-cc-banner__more {
  margin: 0.55rem 0 0;
  font-size: 0.85rem;
}

.ulov-cc-banner__more a {
  color: #d4b76a;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ulov-cc-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  flex: 0 1 auto;
}

.ulov-cc-btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.55rem 1.05rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1.2;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.ulov-cc-btn--primary {
  background: linear-gradient(135deg, #f0d78c, #c9a227);
  color: #1a1520;
}

.ulov-cc-btn--primary:hover {
  filter: brightness(1.05);
}

.ulov-cc-btn--secondary {
  background: transparent;
  color: #f5f0e6;
  border-color: rgba(245, 240, 230, 0.35);
}

.ulov-cc-btn--secondary:hover {
  border-color: #f0d78c;
  color: #fff;
}

.ulov-cc-btn--ghost {
  background: transparent;
  color: #d4b76a;
  border-color: rgba(212, 183, 106, 0.45);
}

.ulov-cc-btn--ghost:hover {
  background: rgba(240, 215, 140, 0.1);
  color: #fff;
}

.ulov-cc-modal[hidden] {
  display: none !important;
}

.ulov-cc-modal {
  position: fixed;
  inset: 0;
  z-index: 9995;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(5, 12, 22, 0.72);
}

.ulov-cc-modal__panel {
  width: min(540px, 100%);
  max-height: min(90vh, 720px);
  overflow: auto;
  background: #0f2540;
  color: #f5f0e6;
  border: 1px solid rgba(240, 215, 140, 0.28);
  border-radius: 12px;
  padding: 1.25rem 1.35rem 1.35rem;
  font-family: "DM Sans", system-ui, sans-serif;
}

.ulov-cc-modal__title {
  margin: 0 0 0.4rem;
  font-size: 1.25rem;
  color: #f0d78c;
}

.ulov-cc-modal__desc {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  color: rgba(245, 240, 230, 0.8);
  line-height: 1.5;
}

.ulov-cc-cats {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.15rem;
}

.ulov-cc-cat {
  padding: 0.85rem 0.95rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.ulov-cc-cat--disabled {
  opacity: 0.55;
}

.ulov-cc-cat__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.ulov-cc-cat__label {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
}

.ulov-cc-cat__text {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.45;
  color: rgba(245, 240, 230, 0.75);
}

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

.ulov-cc-switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.ulov-cc-switch__ui {
  width: 2.6rem;
  height: 1.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  transition: background 0.15s ease;
}

.ulov-cc-switch__ui::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  background: #f5f0e6;
  transition: transform 0.15s ease;
}

.ulov-cc-switch input:checked + .ulov-cc-switch__ui {
  background: #c9a227;
  border-color: #f0d78c;
}

.ulov-cc-switch input:checked + .ulov-cc-switch__ui::after {
  transform: translateX(1.1rem);
}

.ulov-cc-switch input:disabled + .ulov-cc-switch__ui {
  opacity: 0.7;
  cursor: not-allowed;
}

.ulov-cc-switch:has(input:disabled) {
  cursor: not-allowed;
}

.ulov-cc-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

@media (max-width: 640px) {
  .ulov-cc-banner {
    padding: 0.85rem;
  }

  .ulov-cc-banner__actions {
    width: 100%;
  }

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

  .ulov-cc-modal__panel {
    padding: 1.1rem;
  }
}

@media print {
  .ulov-cc-banner,
  .ulov-cc-modal {
    display: none !important;
  }
}
