/* ===============================
   Z-INDEX STACK (Highest → Lowest)
================================ */
#cookieModal { z-index: 4000; }
#cookieReopen { z-index: 3500; }
#activityModal { z-index: 3000; }
#cookieBanner { z-index: 2500; }

/* ===============================
   COOKIE BANNER
================================ */
#cookieBanner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  color: #1d2127;
  padding: 20px;
  display: none;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 -4px 10px rgba(0,0,0,0.25);
}

#cookieBanner p {
  margin: 0;
  max-width: 70%;
}

#cookieBanner button {
  border: none;
  padding: 10px 18px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 4px;
  margin-left: 8px;
}

#acceptAll { background: #c30606; color: #fff; }
#rejectAll { background: #000; color: #fff; }
#cookieSettingsBtn { background: #444; color: #fff; }

/* ===============================
   COOKIE MODAL OVERLAY
================================ */
#cookieModal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.6);
  transition: opacity 0.2s ease;
}

#cookieModal.show {
  display: flex;
}

/* ===============================
   COOKIE MODAL CONTENT
================================ */
#cookieModalContent {
  background: #fff;
  width: 90%;
  max-width: 550px;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0,0,0,0.35);
  animation: fadeIn 0.25s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.cookie-toggle {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid #ddd;
}

.cookie-toggle input {
  transform: scale(1.2);
}

#cookieModal button {
  border: none;
  padding: 10px 18px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 4px;
  margin-right: 8px;
}

#modalSave { background: #c30606; color: #fff; }
#modalAcceptAll { background: #444; color: #fff; }
#modalRejectAll { background: #000; color: #fff; }

/* ===============================
   FLOATING REOPEN BUTTON
================================ */
#cookieReopen {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #f1c40f;
  color: #fff;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  transition: transform 0.2s ease, background 0.2s ease;
}

#cookieReopen:hover {
  background: #c30606;
  transform: scale(1.08);
}

/* ===============================
   GENERIC ACTIVITY MODAL
================================ */
#activityModal {
  position: fixed;
  inset: 0;
  display: none;
  background: rgba(0,0,0,0.5);
  align-items: center;
  justify-content: center;
}

#activityModal.show {
  display: flex;
}

#activityModal .modal-content {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  max-width: 700px;
  width: 90%;
  position: relative;
}

#activityModal .close {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 22px;
  border: none;
  background: none;
  cursor: pointer;
}