/* Cookie banner doboz stílus */
#cookie-banner {
  position: fixed;
  bottom: 80px; /* kicsit fentebb a széltől */
  left: 50%;
  transform: translateX(-50%) translateY(100%); /* középre és kívülről indul */
  max-width: 600px;  /* nem nagyobb, mint 600px */
  width: 90%;        /* mobilon legyen reszponzív */
  background-color: #ffffff; /* fehér háttér */
  color: #000000;
  padding: 20px 25px;
  text-align: center;
  border: 1px solid #000000; /* fekete keret */
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2); /* enyhe árnyék */
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  line-height: 1.4;
  transition: transform 0.5s ease;
}

#cookie-banner.show {
  transform: translateX(-50%) translateY(0); /* felugrik */
}

/* Link stílus */
#cookie-banner .cookie-link {
  color: #0056b3; /* sötét kék, jó kontraszt */
  text-decoration: underline;
  transition: color 0.2s ease;
}

#cookie-banner .cookie-link:hover {
  color: #1e90ff; /* világosabb kék hoverkor */
}

/* Gomb alul, középre */
.cookie-button-container {
  width: 100%;
  display: flex;
  justify-content: center;
}

#cookie-banner button#accept-cookie {
  padding: 10px 20px;
  border-radius: 40px; 
  background-color: var(--primary-color);
  border: none;
  color: white;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

#cookie-banner button#accept-cookie:hover {
  background-color: #4f46e5;
}

/* Mobil optimalizáció */
@media (max-width: 768px) {
  #cookie-banner {
    width: 80%;           /* keskenyebb, mint desktop */
    max-width: none;      /* nincs 600px limit */
    padding: 12px 15px;   /* kisebb padding */
    font-size: 13px;      /* kisebb betűméret */
    bottom: 60px;         /* kicsit feljebb a képernyőn */
    gap: 5px;             /* kevesebb távolság a szöveg és gomb között */
  }

  #cookie-banner button#accept-cookie {
    width: auto;          /* tartalomhoz igazodik */
    min-width: 100px;     /* ne legyen túl kicsi */
    padding: 8px 16px;    /* kisebb gomb */
    border-radius: 50px;  /* teljesen kerek */
  }

  #cookie-banner p {
    margin-bottom: 5px;   /* kevesebb távolság a gomb előtt */
  }

  .cookie-button-container {
    justify-content: center; /* gomb középre */
  }
}
