/* Overlay */
.cookie-modal {
  display: none; /* alapból rejtve */
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.5); /* halvány overlay */
  backdrop-filter: blur(2px); /* kis blur a háttérre */
}

/* Modal box */
.cookie-modal-content {
  background: #fff;
  margin: 10% auto;
  padding: 25px;
  border-radius: 5px;
  width: 700px;
  max-width: 90%;
  text-align: left;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  animation: fadeIn 0.4s ease;
  font-family: "Noto Sans", sans-serif;  
}

/* Cím */
.cookie-modal-content h2 {
  margin-top: 0;
  font-size: 1.4rem;
  color: #333;
}

/* Szöveg */
.cookie-modal-content p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 20px;
}

/* Gombok */
.cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;  
  gap: 10px;
}

.cookie-left button,
.cookie-right button {
  /*margin: 0 5px;*/
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}

.cookie-buttons button {
  flex: 1 1 auto;           /* rugalmas méret, de ne lógjon ki */
  min-width: 140px;         /* legyen minimum szélesség */
  max-width: 160px;         /* ne legyen túl nagy */
  padding: 10px 15px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  text-align: center;
  transition: all 0.2s ease;
}

@media (max-width: 600px) {
  .cookie-buttons {
    flex-direction: column;   /* oszlopba rendezés */
    align-items: stretch;
    gap: 10px;    
  }

  .cookie-left {
    justify-content: flex-start; /* balra igazítva */
    width: 100%;
  }

  .cookie-right {
    justify-content: center;     /* középre igazítva */
    width: 100%;
    margin-top: 10px;
  }

  .cookie-right button {
    width: 100%;                 /* teljes szélesség */
    max-width: 100%;            /* de ne legyen túl széles */
    margin: 0 auto;              /* középre */
    display: block;
  }
}

#cookie-accept {
  background: #00abe4;
  color: #fff;
  border: #00abe4 2px solid;
}

#cookie-reject {
  background: #fff;
  color: #555;
  border: #00abe4 2px solid;
}

#cookie-settings {
  background: #fff;
  color: #555;
  border: #00abe4 2px solid;
}

/* Animáció */
@keyframes fadeIn {
  from {opacity: 0; transform: translateY(-20px);}
  to {opacity: 1; transform: translateY(0);}
}




.cookie-header {
  display: flex;
  align-items: center;
  justify-content: space-between; /* h2 balra, logo jobbra */
}

.cookie-header h2 {
  margin: 0;
  font-size: 1.4rem;
  color: #333;
}

.cookie-logo {
  height: 15px; /* állítsd be a logó méretét */
  width: auto;  
}


/* Scrollable text rész */
.cookie-text {
  max-height: 250px;      /* maximum magasság */
  overflow-y: auto;       /* görgethető, ha hosszabb */
  text-align: left;       /* szöveg balra igazítva */    
}




button svg {
  vertical-align: middle;  
  margin-bottom: 3px;
}



.cookie-main-content,
.cookie-settings-content {
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.fade-out {
  opacity: 0;
  transform: translateX(-20px);
}

.fade-in {
  opacity: 1;
  transform: translateX(0);
}



/* Toggle wrapper */
.toggle {
  display: flex;
  align-items: center;
  margin: 12px 0;
}

/* Label szöveg */
.toggle-label {
  margin-left: 12px;
  font-size: 16px;
  font-weight: 500;
  margin-top: -10px;
}

.toggle-desc {
  margin: 6px 0 14px 46px; /* igazítás a kapcsolóhoz */
  font-size: 14px;
  color: #555;
  line-height: 1.4;
}

/* Switch alap */
.switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 24px;
}

/* Checkbox elrejtve */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* Slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 24px;
}

/* Kör */
.slider:before {
  position: absolute;
  content: "";
  height: 18px; width: 18px;
  left: 3px; bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

/* Bekapcsolt állapot */
.switch input:checked + .slider {
  background-color: #4CAF50;
}

.switch input:checked + .slider:before {
  transform: translateX(22px);
}

/* Disabled toggle */
.switch input:disabled + .slider {
  background-color: #999;
  cursor: not-allowed;
}



/* CSS */
.cookie-modal.fade-out {
  opacity: 0;
  transition: opacity 0.4s ease;
}





.toast {
  visibility: hidden;
  min-width: 200px;
  background: #333;
  color: #fff;
  text-align: center;
  border-radius: 4px;
  padding: 10px;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.5s, visibility 0.5s;
}
.toast.show {
  visibility: visible;
  opacity: 1;
}
