/* ===================== COOKIE CONSENT — NOVES ===================== */
/* Používa rovnaké farby ako zvyšok webu:
   --cc-navy = #1a2a5e (hlavná tmavomodrá)
   --cc-yellow = #f5c400 (akcent)
   Ak už máš tieto hodnoty ako CSS custom properties inde (napr. :root),
   pokojne premenné nižšie zmaž a nahraď svojimi. */

:root {
  --cc-navy: #1a2a5e;
  --cc-navy-light: #24356f;
  --cc-yellow: #f5c400;
  --cc-text: #e9ecf5;
  --cc-text-muted: #b7bede;
  --cc-radius: 12px;
}

/* ---------- OVERLAY (stmavenie pozadia) ---------- */
.cc-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(10, 15, 35, 0.6);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.cc-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

/* ---------- BANNER (centrovaný modál) ---------- */
.cc-banner {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 9999;
  width: calc(100% - 40px);
  max-width: 940px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--cc-navy);
  color: var(--cc-text);
  font-family: 'Montserrat', sans-serif;
  border-radius: var(--cc-radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  transform: translate(-50%, -48%) scale(0.98);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.35s ease, opacity 0.35s ease, visibility 0.35s;
}

.cc-banner.is-visible {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.cc-banner__inner {
  position: relative;
  padding: 28px 32px 26px;
}

.cc-banner__close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 26px;
  line-height: 1;
  color: var(--cc-text-muted);
  cursor: pointer;
}

.cc-banner__close:hover {
  color: var(--cc-yellow);
}

.cc-banner__title {
  margin: 0 40px 12px 0;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

.cc-banner__text {
  margin: 0 0 22px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--cc-text-muted);
  max-width: 760px;
}

.cc-banner__text a {
  color: var(--cc-yellow);
  text-decoration: underline;
}

.cc-banner__actions {
  margin-top: 6px;
  padding-top: 22px;
  border-top: 1px solid rgba(233, 236, 245, 0.15);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  justify-content: space-between;
}

/* ---------- TLAČIDLÁ (spoločné pre banner aj modal) ---------- */
.cc-btn {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.cc-btn:hover {
  transform: translateY(-1px);
}

.cc-btn--primary {
  background: var(--cc-yellow);
  color: var(--cc-navy);
}

.cc-btn--primary:hover {
  background: #ffd633;
}

.cc-btn--outline {
  background: transparent;
  border-color: rgba(233, 236, 245, 0.35);
  color: var(--cc-text);
}

.cc-btn--outline:hover {
  border-color: var(--cc-yellow);
  color: var(--cc-yellow);
}

.cc-btn--ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--cc-text-muted);
  text-decoration: underline;
  padding: 11px 8px;
}

.cc-btn--ghost:hover {
  color: var(--cc-yellow);
}

.cc-btn--ghost svg { flex-shrink: 0; }

/* ---------- MODAL (nastavenia) ---------- */
.cc-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cc-modal.is-open {
  display: flex;
}

.cc-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 35, 0.6);
  backdrop-filter: blur(2px);
}

.cc-modal__panel {
  position: relative;
  background: #fff;
  color: #1e2438;
  width: 100%;
  max-width: 520px;
  max-height: 86vh;
  overflow-y: auto;
  border-radius: var(--cc-radius);
  padding: 32px 30px 26px;
  font-family: 'Montserrat', sans-serif;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.cc-modal__close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 26px;
  line-height: 1;
  color: #8b90a8;
  cursor: pointer;
}

.cc-modal__close:hover {
  color: var(--cc-navy);
}

.cc-modal__panel h2 {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 700;
  color: var(--cc-navy);
}

.cc-modal__intro {
  margin: 0 0 22px;
  font-size: 13.5px;
  line-height: 1.6;
  color: #545a75;
}

.cc-category {
  padding: 14px 0;
  border-top: 1px solid #ececf2;
}

.cc-category:last-of-type {
  border-bottom: 1px solid #ececf2;
}

.cc-category__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cc-category__name {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--cc-navy);
}

.cc-category__desc {
  margin: 6px 0 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: #6a7090;
}

.cc-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}

.cc-modal__actions .cc-btn {
  color: initial;
}

.cc-modal__actions .cc-btn--outline {
  border-color: #d7dae6;
  color: #545a75;
}

.cc-modal__actions .cc-btn--outline:hover {
  border-color: var(--cc-navy);
  color: var(--cc-navy);
}

/* ---------- SWITCH (zapínač) ---------- */
.cc-switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 24px;
  flex-shrink: 0;
}

.cc-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cc-switch__slider {
  position: absolute;
  inset: 0;
  background: #d7dae6;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.cc-switch__slider::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.cc-switch input:checked + .cc-switch__slider {
  background: var(--cc-navy);
}

.cc-switch input:checked + .cc-switch__slider::before {
  transform: translateX(18px);
}

.cc-switch--disabled .cc-switch__slider {
  cursor: not-allowed;
  opacity: 0.6;
}

.cc-switch--disabled input:checked + .cc-switch__slider {
  background: #9aa1c0;
}

/* ---------- MOBILE ---------- */
@media (max-width: 640px) {
  .cc-banner__inner {
    padding: 22px 18px 20px;
  }
  .cc-banner__actions {
    width: 100%;
  }
  .cc-btn {
    flex: 1 1 auto;
    text-align: center;
    justify-content: center;
  }
  .cc-modal__panel {
    padding: 26px 20px 22px;
  }
}
