/* ===============================
   COOKIE POPUP
================================*/
.cookie-popup {
  position: fixed;
  bottom: -300px;
  right: 25px;
  left: auto;
  width: 350px;
  background: #ffffff;
  color: #333;
  box-shadow: 0 4px 15px rgba(0,0,0,0.25);
  font-size: 0.95rem;
  z-index: 5000;
  transition: bottom 0.6s ease, opacity 0.4s ease;
  opacity: 0;
  overflow: hidden;
}

/* Slide-up visible state */
.cookie-popup.show {
  bottom: 25px;
  opacity: 1;
}

/* ===== Header ===== */
.cookie-header {
  width: 100%;
  background: linear-gradient(90deg, #1f633c ,#2E8B57);
  padding: 0.9rem 1rem;
  color: #fff;
  text-align: left;
}

.cookie-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

/* ===== Content ===== */
.cookie-popup p {
  padding: 1rem 1.5rem;
  margin: 0;
  line-height: 1.5;
}

/* ===== Buttons ===== */
.cookie-buttons {
  display: flex;
  justify-content: flex-end;
  padding: 0 1.5rem 1.2rem 1.5rem;
}

.cookie-buttons button {
  padding: 0.6rem 1.4rem;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  background-color: #2E8B57;
  color: #fff;
}

.cookie-buttons button:hover {
  background-color: #256c46;
}

/* When popup is hidden */
.cookie-popup {
  pointer-events: none;
}

/* When visible */
.cookie-popup.show {
  pointer-events: auto;
}

/* ==========================================
   MOBILE — FULL WIDTH, TOUCHES LEFT/RIGHT/BOTTOM
   (max-width: 768px)
==========================================*/
@media (max-width: 768px) {
  .cookie-popup {
    width: 100%;
    max-width: none;
    left: 0;
    right: 0;
    bottom: 0 !important;        /* Touch the bottom */
    transform: none;             /* No centering */
    text-align: center;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);

    padding-bottom: 1.5rem;
  }

  .cookie-header {
    text-align: center;
  }

  .cookie-buttons {
    justify-content: center; 

  }
    .cookie-buttons button {
    padding: 0.75rem 5.8rem;
    font-size: 1rem;
  }
}

/* ==========================================
   EXTRA SMALL PHONES — 480px
==========================================*/
@media (max-width: 480px) {
  .cookie-popup {
    width: 100%;
    left: 0;
    right: 0;
    bottom: 0 !important;
    height: 40%;

    padding-bottom: 2rem;      /* More height for tiny screens */
  }

  .cookie-header {
  text-align: center;
}


  .cookie-header h3 {
    font-size: 1.3rem;
  }


  .cookie-popup p {
    margin-top: 7%;
    padding: 1rem;
    font-size: 0.92rem;
  }

  .cookie-buttons button {
    padding: 0.75rem 5.8rem;
    font-size: 1.3rem;
    margin-top: 25px;
  }
}
