.cookie-popup {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  width: 320px;
  display: none;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  box-shadow: 3px 3px 3px 2px rgba(12, 12, 12, 0.14);
  border-radius: 15px;
  background-color: #fefefe;
  padding: 1.5rem 1rem 1.2rem;
  font-family: inherit;
}

.cookie-popup.show {
  display: flex;
  animation: cookieSlideUp 0.4s ease forwards;
}

.cookie-popup.hide {
  display: flex;
  animation: cookieSlideDown 0.4s ease forwards;
}

.cookie-icon {
  font-size: 5rem;
  color: #fca93f;
}

.cookie-text {
  font-size: 0.875em;
  text-align: justify;
  margin: 0.75rem 0;
  color: #333;
  line-height: 1.5;
}

.cookie-privacy-link {
  color: #0b97f5;
  text-decoration: underline;
  transition: color 0.2s ease-in;
  white-space: nowrap;
}

.cookie-privacy-link:hover {
  color: #fca93f;
}

.cookie-btn-group {
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 100%;
  margin-top: 0.5rem;
  gap: 0.75rem;
}

.cookie-btn {
  padding: 7px 25px;
  border: 2px solid transparent;
  border-radius: 25px;
  font-size: 0.9em;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s ease-in;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.cookie-btn i {
  font-size: 1.1em;
}

.cookie-reject-btn {
  color: #fefefe;
  background-color: #0c0c0c;
}

.cookie-reject-btn:hover {
  border-color: #0c0c0c;
  color: #0c0c0c;
  background-color: #fefefe;
}

.cookie-accept-btn {
  color: #fefefe;
  background-image: linear-gradient(to right, #fca93f, #f06b20);
}

.cookie-accept-btn:hover {
  border-color: #fca93f;
  color: #fca93f;
  background-image: none;
  background-color: #fefefe;
}

@keyframes cookieSlideUp {
  from {
    transform: translateY(100px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes cookieSlideDown {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(100px);
    opacity: 0;
  }
}

@media screen and (max-width: 480px) {
  .cookie-popup {
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
    border-radius: 15px 15px 0 0;
  }
}

@media screen and (min-width: 500px) {
  .cookie-popup {
    width: 350px;
  }
}
