/* ═══════════════════════════════════════════
   COOKIE BANNER — shared across every page, self-contained (hardcoded colors,
   not CSS custom properties) so it renders identically regardless of whether
   the page loads style.css (index.html, politika-zasebnosti.html) or
   delavnice.css (delavnica-slikanja.html, hvala.html, pogoji-poslovanja.html) —
   those two systems use different variable names.
   Extracted from style.css; values match exactly (--magenta: #E8177A,
   --magenta-dark: #C2135F, --white: #FFFFFF, --font-display: 'Barlow Condensed').
   ═══════════════════════════════════════════ */

.cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #111;
  border-top: 2px solid #E8177A;
  padding: 20px 5vw;
  max-height: 90vh;
  overflow-y: auto;
}

.cookie-banner.visible {
  display: block;
}

.cookie-banner__inner {
  max-width: 900px;
  margin: 0 auto;
}

.cookie-banner__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-banner [hidden] { display: none !important; }

.cookie-banner__text {
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.7);
  flex: 1;
  min-width: 200px;
}

.cookie-banner__text a {
  color: #F068A9;
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.cookie-banner__btn {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 20px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  white-space: nowrap;
}

.cookie-banner__btn--text {
  background: none;
  color: rgba(255,255,255,0.45);
}
.cookie-banner__btn--text:hover { color: #FFFFFF; }

.cookie-banner__btn--outline {
  background: none;
  border-color: rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.7);
}
.cookie-banner__btn--outline:hover {
  border-color: rgba(255,255,255,0.5);
  color: #FFFFFF;
}

.cookie-banner__btn--primary {
  background: #C2135F;
  border-color: #C2135F;
  color: #FFFFFF;
}
.cookie-banner__btn--primary:hover {
  background: #E8177A;
  border-color: #E8177A;
}

/* Settings panel */
.cookie-settings {
  padding-top: 16px;
}

.cookie-settings__title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  color: #FFFFFF;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.cookie-category__info strong {
  display: block;
  font-size: 0.8rem;
  color: #FFFFFF;
  margin-bottom: 2px;
}

.cookie-category__info p {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.4;
  margin: 0;
}

.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  cursor: pointer;
}

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

.cookie-toggle__track {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.15);
  border-radius: 24px;
  transition: background 0.2s;
}

.cookie-toggle__track::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s;
}

.cookie-toggle input:checked + .cookie-toggle__track { background: #E8177A; }
.cookie-toggle input:checked + .cookie-toggle__track::before { transform: translateX(20px); }
.cookie-toggle input:focus-visible + .cookie-toggle__track {
  outline: 2px solid #E8177A;
  outline-offset: 2px;
}

.cookie-toggle--forced {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  flex-shrink: 0;
}

.cookie-settings__actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 14px;
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  .cookie-banner__top {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-settings__actions {
    justify-content: stretch;
  }

  .cookie-settings__actions .cookie-banner__btn {
    flex: 1;
    text-align: center;
  }
}
