/* Süti-tájékoztató sáv (templates/element/cookie_consent.php).
   Külön fájl, amit maga az element tölt be, hogy MINDEN layoutban (default,
   valasztas) stílusozva jelenjen meg — korábban a styles.css része volt, amit a
   választási layout nem tölt be. */

.cookie-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: #fff;
  border-top: 3px solid var(--mok-blue, #1c2481);
  box-shadow: 0 -4px 18px rgba(0, 0, 0, .12);
  transition: transform .3s ease, opacity .3s ease;
}

.cookie-bar.is-hidden {
  transform: translateY(100%);
  opacity: 0;
}

.cookie-bar__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-bar__text {
  margin: 0;
  flex: 1 1 420px;
  font-size: 15px;
  line-height: 1.55;
  color: #333;
}

.cookie-bar__link { color: var(--mok-blue, #1c2481); text-decoration: underline; }

.cookie-bar__actions {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
}

.cookie-bar__btn {
  appearance: none;
  border: 1px solid var(--mok-blue, #1c2481);
  background: var(--mok-blue, #1c2481);
  color: #fff;
  border-radius: 4px;
  padding: 10px 22px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.cookie-bar__btn:hover { filter: brightness(1.12); }

.cookie-bar__btn--ghost {
  background: #fff;
  color: var(--mok-blue, #1c2481);
}

/* Mobilon a sáv a lap aljára tapad, ezért a két gomb SOHA ne csúszhasson ki a
   képernyőről: a szöveg tömörebb és külön görgethető (max-height), a gombsor
   pedig mindig alatta, a biztonságos zónán belül. A töréspont szándékosan 768px
   — mint a többi mobil szabály (korábban 640px volt, a 641–768px sávban a
   hosszú szöveg mellé kicsúsztak a gombok). */
@media (max-width: 768px) {
  .cookie-bar__inner {
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    gap: 10px;
    align-items: stretch;
    max-height: 70vh;
  }
  .cookie-bar__text {
    flex: 1 1 100%;
    font-size: 13.5px;
    line-height: 1.45;
    max-height: 34vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .cookie-bar__actions {
    width: 100%;
    flex: 0 0 auto;
  }
  .cookie-bar__btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 12px 8px;
    font-size: 14px;
  }
}
