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

//* ===============================
   COOKIE BANNER
================================ */

#cookieBanner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #222;
    color: #fff;
    padding: 20px;
    z-index: 99999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

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

#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
================================ */

#cookieModal {
    display: none;
    position: fixed;
    z-index: 100000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
}

#cookieModalContent {
    background: #fff;
    padding: 25px;
    max-width: 400px;
    margin: 10% auto;
    border-radius: 6px;
}

.cookie-toggle {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

/* ===============================
   FLOATING BUTTON
================================ */

#cookieReopen {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: #f4c400;
    color: #000;
    font-size: 20px;
    padding: 12px 15px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 99999;
}

/* ===============================
   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;
}



/* ===============================
   PRIVACY POLICY BOTTOM POPUP
================================ */

#privacyPopup {
    position: fixed;
    bottom: -200px; /* hidden below screen */
    left: 0;
    width: 100%;
    background: #111;
    color: #fff;
    padding: 20px;
    z-index: 99999;
    transition: bottom 0.5s ease;
}

#privacyPopup.active {
    bottom: 0;
}

.privacy-content {
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

#privacyPopup a {
    color: #c30606;
    font-weight: bold;
    text-decoration: none;
}

#privacyAccept {
    background: #c30606;
    border: none;
    padding: 10px 20px;
    color: #fff;
    cursor: pointer;
    border-radius: 4px;
}