#cookieConsent {
  --cookie-primary: #ec8609;
  --cookie-secondary: orange;
  --cookie-accent: orange;
  --cookie-success: #4cc9f0;
  --cookie-warning: #f72585;
  --cookie-radius: 12px;
  --cookie-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  --cookie-transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

#cookieConsent {
  position: fixed;
  bottom: 0;
  left: 0;
  max-width: 600px;
  background-color: #f8f9f0;
  color: black;
  padding: 20px;
  text-align: center;
  font-size: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 15px;
  z-index: 1000;
  border-radius: 10px;
  box-shadow: 0 15px 20px rgba(0, 0, 0, 0.15);
  animation: cookieSlideUp 0.5s ease-out;
}

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

#cookieConsent::before {
  content: "🍪";
  font-size: 24px;
  margin-right: 10px;
}

#cookieConsent p {
  margin: 0;
  flex: 1;
  min-width: 300px;
  text-align: left;
  line-height: 1.6;
}

#cookieConsent .cookie-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

#cookieConsent button {
  background: linear-gradient(
    135deg,
    var(--cookie-primary),
    var(--cookie-accent)
  );
  color: white;
  border: none;
  padding: 12px 24px;
  cursor: pointer;
  font-size: 15px;
  box-shadow: 0 5px 15px rgba(67, 97, 238, 0.2);
  border-radius: var(--cookie-radius);
  transition: var(--cookie-transition);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

#cookieConsent button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(67, 97, 238, 0.4);
}

#cookieConsent button::before {
  font-size: 16px;
}

#cookieConsent button:first-child::before {
  content: "✓";
}

#cookieConsent .reject-btn {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
}

#cookieConsent .reject-btn::before {
  content: "✕";
}

#cookieConsent .reject-btn:hover {
  background: linear-gradient(135deg, #c0392b, #a33224);
  box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
}

#cookieConsent .manage-btn {
  background: transparent;
  color: var(--cookie-primary);
  border: 1px solid var(--cookie-primary);
}

#cookieConsent .manage-btn::before {
  content: "⚙️";
}

#cookieConsent .manage-btn:hover {
  background: rgba(67, 97, 238, 0.1);
  box-shadow: 0 5px 15px rgba(67, 97, 238, 0.2);
}

/* Modal for detailed cookie preferences */
.cookie-modal {
  --cookie-primary: #f39c12;
  --cookie-secondary: #f39c12;
  --cookie-accent: #4895ef;
  --cookie-dark: #2b2d42;
  --cookie-light: #f8f9fa;
  --cookie-radius: 12px;
  --cookie-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  --cookie-transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.cookie-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1001;
  animation: cookieFadeIn 0.3s ease;
  padding: 20px;
}

@keyframes cookieFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.cookie-modal > div {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  padding: 30px;
  box-shadow: var(--cookie-shadow);
  z-index: 1002;
  width: 90%;
  max-width: 550px;
  border-radius: var(--cookie-radius);
  animation: cookieScaleIn 0.3s ease;
}

@keyframes cookieScaleIn {
  from {
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0;
  }
  to {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

.cookie-modal h3 {
  margin-top: 0;
  margin-bottom: 25px;
  color: var(--cookie-dark);
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.cookie-modal h3::before {
  content: "🍪";
  font-size: 2rem;
}

.cookie-option {
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.cookie-option:last-child {
  margin-bottom: 30px;
}

.cookie-option input[type="checkbox"] {
  width: 22px;
  height: 22px;
  margin-top: 3px;
  accent-color: var(--cookie-primary);
  flex-shrink: 0;
  cursor: pointer;
}
.cookie-option input[type="checkbox"]:focus {
  box-shadow: 0 0 0 2px #f39c12;
  color: orange;
}
.cookie-option label {
  font-size: 1.1rem;
  line-height: 1.6;
  cursor: pointer;
  font-weight: 500;
  color: var(--cookie-dark);
}

.cookie-option-desc {
  display: block;
  margin-top: 5px;
  font-size: 0.95rem;
  color: #666;
  line-height: 1.5;
  font-weight: normal;
}

.cookie-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  flex-wrap: wrap;
}

.cookie-modal button {
  padding: 12px 24px;
  border: none;
  border-radius: var(--cookie-radius);
  cursor: pointer;
  font-size: 15px;
  transition: var(--cookie-transition);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cookie-modal button:first-child {
  background: linear-gradient(
    135deg,
    var(--cookie-primary),
    var(--cookie-accent)
  );
  color: white;
}

.cookie-modal button:first-child:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
}

.cookie-modal button.close-modal {
  background: #f0f2f5;
  color: #555;
}

.cookie-modal button.close-modal:hover {
  background: #e5e8eb;
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
  #cookieConsent {
    flex-direction: column;
    text-align: center;
    padding: 15px;
    bottom: 100px;
  }

  #cookieConsent p {
    text-align: center;
    min-width: auto;
    margin-bottom: 15px;
  }

  #cookieConsent .cookie-buttons {
    flex-direction: column;
    width: 100%;
  }

  #cookieConsent button {
    width: 100%;
    justify-content: center;
  }

  .cookie-modal > div {
    width: 95%;
    padding: 20px;
  }

  .cookie-modal-actions {
    flex-direction: column;
  }

  .cookie-modal button {
    width: 100%;
    justify-content: center;
  }
}
