/* ── COOKIE SÁV ── */
#cookieBanner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  background: #fff;
  border-top: 2px solid var(--border);
  box-shadow: 0 -8px 40px rgba(43,49,138,0.12);
  padding: 20px clamp(16px,5vw,60px);
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(.32,0,.15,1);
}
#cookieBanner.show { transform: translateY(0); }
.cookie-left { display: flex; align-items: center; gap: 16px; flex: 1; min-width: 260px; }
.cookie-icon { font-size: 2rem; flex-shrink: 0; }
.cookie-text h4 { font-size: 0.95rem; font-weight: 800; color: var(--navy); margin-bottom: 4px; }
.cookie-text p { font-size: 0.8rem; color: var(--gray); line-height: 1.55; }
.cookie-text a { color: var(--orange); font-weight: 600; text-decoration: none; }
.cookie-text a:hover { text-decoration: underline; }
.cookie-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-btn {
  padding: 11px 24px; border-radius: 50px;
  font-size: 0.875rem; font-weight: 700;
  cursor: pointer; border: none; font-family: inherit;
  transition: 0.2s; white-space: nowrap;
}
.cookie-accept { background: var(--orange); color: #fff; box-shadow: 0 4px 16px rgba(244,121,32,.3); }
.cookie-accept:hover { background: var(--orange-dk); }
.cookie-reject { background: var(--gray-lt); color: var(--gray); border: 1.5px solid var(--border); }
.cookie-reject:hover { background: var(--border); }
.cookie-settings { background: none; color: var(--navy); border: 1.5px solid var(--border); }
.cookie-settings:hover { border-color: var(--navy); }

/* Cookie beállítások modal */
#cookieModal {
  display: none; position: fixed; inset: 0; z-index: 10000;
  background: rgba(15,16,32,0.6); backdrop-filter: blur(4px);
  align-items: center; justify-content: center; padding: 20px;
}
#cookieModal.open { display: flex; }
.cookie-modal-panel {
  background: #fff; border-radius: 20px; max-width: 520px; width: 100%;
  padding: 36px; box-shadow: 0 24px 80px rgba(0,0,0,0.2);
}
.cookie-modal-panel h3 { font-size: 1.2rem; font-weight: 900; color: var(--navy); margin-bottom: 6px; }
.cookie-modal-panel > p { font-size: 0.82rem; color: var(--gray); margin-bottom: 24px; line-height: 1.6; }
.cookie-option {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border);
}
.cookie-option:last-of-type { border-bottom: none; }
.cookie-option-info h5 { font-size: 0.88rem; font-weight: 700; color: var(--navy); margin-bottom: 3px; }
.cookie-option-info p { font-size: 0.75rem; color: var(--gray); line-height: 1.5; }
/* Toggle switch */
.toggle-wrap { flex-shrink: 0; }
.toggle { position: relative; width: 44px; height: 24px; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; inset: 0; border-radius: 24px;
  background: var(--border); cursor: pointer;
  transition: background 0.2s;
}
.toggle-slider::before {
  content: ''; position: absolute; width: 18px; height: 18px;
  left: 3px; top: 3px; border-radius: 50%; background: #fff;
  transition: transform 0.2s; box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.toggle input:checked + .toggle-slider { background: var(--orange); }
.toggle input:checked + .toggle-slider::before { transform: translateX(20px); }
.toggle input:disabled + .toggle-slider { opacity: 0.5; cursor: not-allowed; }
.cookie-modal-footer { display: flex; gap: 10px; margin-top: 24px; justify-content: flex-end; flex-wrap: wrap; }

@media(max-width: 640px) {
  #cookieBanner { flex-direction: column; align-items: flex-start; padding-bottom: 80px; }
  .cookie-buttons { width: 100%; }
  .cookie-btn { flex: 1; text-align: center; }
}
