/*
 * STEBLO – informačná lišta o cookies (markup: site-prefs.php, logika: assets/js/site-prefs.js).
 * Farby, písma a zaoblenie podľa steblo.css: svetlá zelená plocha ako hlavička, oblé tlačidlo ako „Vyžiadať ponuku“.
 */

.steblo-prefs {
  position: fixed; z-index: 6; left: 50%; bottom: 18px;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px 22px;
  width: min(860px, calc(100% - 36px)); padding: 16px 18px;
  border: 1px solid #d6e4c9; border-radius: 28px; background: var(--surface);
  box-shadow: 0 24px 60px -20px #2c452047, 0 3px 12px #2c45201a;
  color: #46513f; font-size: 14.5px; line-height: 1.5;
  transform: translate(-50%, 0); opacity: 1;
}
.steblo-prefs[hidden] { display: none; }
.steblo-prefs-logo { display: block; width: 52px; height: 52px; border: 1px solid #dbe7cf; border-radius: 50%; background: #fff; }
.steblo-prefs-text h2 { margin: 0 0 2px; color: var(--green); font: 800 1.12rem/1.25 Nunito, Arial, sans-serif; }
.steblo-prefs-text p { margin: 0; }
.steblo-prefs a { color: var(--green); text-underline-offset: 3px; }
.steblo-prefs-actions { display: flex; align-items: center; }

/* Vstup lišty: jemné vysunutie zdola, bez pohybu pri obmedzenej animácii */
@media (prefers-reduced-motion: no-preference) {
  .steblo-prefs { transition: opacity .45s cubic-bezier(.16, 1, .3, 1), transform .45s cubic-bezier(.16, 1, .3, 1); }
  .steblo-prefs.is-entering, .steblo-prefs.is-leaving { opacity: 0; transform: translate(-50%, 16px); }
}

.steblo-prefs-button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 9px 26px;
  border: 1px solid var(--accent); border-radius: 3rem; background: var(--accent); color: #fff;
  font: 700 14px/1.2 Roboto, Arial, sans-serif; white-space: nowrap; cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, transform .1s ease;
}
.steblo-prefs-button:hover { border-color: #4f7410; background: #4f7410; }
.steblo-prefs-button:active { transform: translateY(1px); }
.steblo-prefs-button:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

/* Kým je lišta zobrazená, plávajúce tlačidlá sa skryjú, aby ju neprekrývali */
.prefs-pending .contact, .prefs-pending .back-top { visibility: hidden; }

/* ---------- Tablet a mobil ---------- */
@media (max-width: 700px) {
  .steblo-prefs { grid-template-columns: auto minmax(0, 1fr); bottom: 10px; width: calc(100% - 20px); padding: 16px; border-radius: 22px; }
  .steblo-prefs-actions { grid-column: 1 / -1; }
  .steblo-prefs-button { flex: 1; }
}
@media (max-width: 480px) {
  .steblo-prefs { gap: 12px 14px; font-size: 14px; }
  .steblo-prefs-logo { width: 42px; height: 42px; }
}

@media print {
  .steblo-prefs { display: none; }
}
