/* === COOKIE MODAL POPUP === */
.cookie-modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  width: 90%;
  max-width: 600px;
  background-color: #111;
  color: #fff;
  border: 2px solid #f1d145;
  border-radius: 16px;
  box-shadow: 0 0 16px rgba(255, 215, 0, 0.4);
  padding: 1.5rem;
  overflow-y: auto;
  max-height: 90vh;
  font-family: 'Segoe UI', sans-serif;
}

/* === HEADER === */
.cookie-modal h2 {
  color: #f1d145;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

/* === GENERAL TEXT === */
.cookie-modal p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #ccc;
}

/* === EACH COOKIE OPTION === */
.cookie-option {
  border-top: 1px solid #333;
  padding: 1rem 0;
}

.cookie-option h4 {
  color: #f1d145;
  margin-bottom: 0.25rem;
}

.cookie-option label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #f1d145;
}

.cookie-option input[type="checkbox"] {
  transform: scale(1.3);
}

/* === BUTTON SECTION === */
.cookie-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 1.5rem;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.cookie-buttons .btn {
  padding: 0.75rem 1.2rem;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-weight: bold;
  font-size: 0.9rem;
  transition: background-color 0.2s ease-in-out, transform 0.2s ease;
}

.cookie-buttons .btn.gold {
  background-color: #f1d145;
  color: #000;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

.cookie-buttons .btn.gold:hover {
  background-color: #ffe766;
  transform: scale(1.03);
}

.cookie-buttons .btn:not(.gold) {
  background-color: #222;
  color: #fff;
  border: 1px solid #666;
}

.cookie-buttons .btn:not(.gold):hover {
  background-color: #333;
  color: #fff;
  transform: scale(1.03);
}

/* === COOKIE BANNER === */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2rem);
  max-width: 960px;

  background-color: #111;
  color: #fff;
  padding: 1.5rem;
  z-index: 9998;

  border: 2px solid #f1d145;
  border-radius: 16px;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.3);

  font-size: 0.9rem;

  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}



.cookie-banner p a {
  color: #00adee;
  text-decoration: underline;
}

.cookie-banner-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}


.cookie-banner .btn {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 30px;
  font-weight: bold;
  cursor: pointer;
  font-size: 0.9rem;
}

.cookie-banner .btn.gold {
  background-color: #f1d145;
  color: #000;
  box-shadow: 0 0 6px rgba(255, 215, 0, 0.3);
}

.cookie-banner .btn.gold:hover {
  background-color: #ffe766;
}

.cookie-banner .btn:not(.gold) {
  background-color: #222;
  color: #fff;
  border: 1px solid #666;
}

.cookie-banner .btn:not(.gold):hover {
  background-color: #333;
}

/* === OVERLAY TO BLOCK BACKGROUND === */
.cookie-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
}

/* === MOBILE RESPONSIVE === */
@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .cookie-buttons {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ===================== */
/* Responsive Adjustments */
/* ===================== */

/* Tablets (≤ 991px) */
@media (max-width: 991px) {
  .cookie-modal {
    width: 95%;
    max-width: 540px;
    padding: 1.25rem;
  }

  .cookie-modal h2 {
    font-size: 1.2rem;
  }

  .cookie-modal p {
    font-size: 0.9rem;
  }

  .cookie-buttons .btn {
    font-size: 0.85rem;
    padding: 0.65rem 1rem;
  }

  .cookie-banner {
    padding: 1.25rem;
    font-size: 0.85rem;
  }
}

/* Phones (≤ 767px) */
@media (max-width: 767px) {
  .cookie-modal {
    width: 92%;
    max-width: 440px;
    max-height: 80vh;
    padding: 1rem;
  }

  .cookie-modal h2 {
    font-size: 1.1rem;
  }

  .cookie-option {
    padding: 0.75rem 0;
  }

  .cookie-option h4 {
    font-size: 0.95rem;
  }

  .cookie-option label {
    font-size: 0.85rem;
  }

  .cookie-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .cookie-banner {
    width: calc(100% - 1rem);
    padding: 1rem;
    border-radius: 12px;
    font-size: 0.85rem;
    gap: 0.75rem;
  }

  .cookie-banner-buttons {
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
  }

  .cookie-banner .btn {
    width: 100%;
    font-size: 0.85rem;
    padding: 0.55rem 1rem;
  }
}

/* Small Phones (≤ 480px) */
@media (max-width: 480px) {
  .cookie-modal {
    width: 95%;
    max-width: 360px;
    max-height: 75vh;
    padding: 0.9rem;
    border-radius: 12px;
  }

  .cookie-modal h2 {
    font-size: 1rem;
  }

  .cookie-modal p {
    font-size: 0.85rem;
  }

  .cookie-option h4 {
    font-size: 0.9rem;
  }

  .cookie-option label {
    font-size: 0.8rem;
    gap: 0.4rem;
  }

  .cookie-buttons .btn {
    font-size: 0.8rem;
    padding: 0.55rem 0.9rem;
  }

  .cookie-banner {
    padding: 0.9rem;
    font-size: 0.8rem;
    gap: 0.5rem;
  }

  .cookie-banner .btn {
    font-size: 0.8rem;
    padding: 0.5rem 0.9rem;
  }
}
