.cookie-popup {
  position: fixed;
  width: 98%;
  left: 1%;
  bottom: 0;
  background-color: #f1f1f1;
  padding: 2vw;
  border: 2px solid white;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  gap: 2vw;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  transition: bottom 0.5s ease-in-out;
  background-color: black;
  z-index:50;
}
.open {
  animation: slideUp 1.5s ease-in-out forwards;
}
.close {
  animation: slideDown 1.5s ease-in-out backwards;
}
@keyframes slideUp {
  0% {
    bottom: -100%;
  }
  100% {
    bottom: 1vw;
  }
}
@keyframes slideDown {
  0% {
    bottom: 1vw;
  }
  100% {
    bottom: -100%;
  }
}
.text {
  width: 65%;
}
.text h2 {
  font-size: 2vw;
}
.text p {
  font-size: 1.5vw;
}
.btns {
  display: flex;
  justify-content: center;
  gap: 2vw;
  align-items: center;
}

.btns button {
  padding: 0.5vw 1vw;
  outline: none;
  border: 1.5px solid white;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.5vw;
  border-radius: 10px;
}

button.essential-button:hover {
  color: green;
}

button.essential-button:active {
  color: black;
}
button.reject-button:hover {
  color: red;
}

button.reject-button:active {
  color: black;
}

@media screen and (max-width: 768px) {
  .cookie-popup {
    flex-direction: column;
  }
  .text {
    width: 100%;
  }
  .text h2 {
    font-size: 2.5vw;
  }
  .text p {
    font-size: 1.8vw;
  }
  .btns button {
    font-size: 1.8vw;
  }
  .btns {
    gap: 5vw;
  }
}

@media screen and (max-width: 480px) {
  .cookie-popup {
    flex-direction: column;
  }
  .text {
    width: 100%;
  }
  .text h2 {
    font-size: 3.5vw;
  }
  .text p {
    font-size: 2.8vw;
  }
  .btns button {
    font-size: 2.8vw;
  }
  .btns {
    gap: 8vw;
  }
}
