/* Cookie Consent Styles */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.9);
  color: #fff;
  padding: 20px;
  z-index: 9999;
  display: none;
}

.cookie-consent.show {
  display: block;
  animation: slideUp 0.5s forwards;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.cookie-consent-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.cookie-text h4 {
  color: #fff;
  margin-bottom: 10px;
}

.cookie-text p {
  margin-bottom: 0;
  font-size: 0.9rem;
}

.cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cookie-btn {
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

.accept-all {
  background-color: var(--accent-color);
  color: #fff;
}

.accept-all:hover {
  background-color: #e55e00;
}

.necessary-only {
  background-color: transparent;
  border: 1px solid #fff;
  color: #fff;
}

.necessary-only:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.customize {
  background-color: transparent;
  color: #fff;
  text-decoration: underline;
}

.customize:hover {
  color: var(--accent-color);
}

/* Cookie Settings Modal */
.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.cookie-modal.open {
  opacity: 1;
  visibility: visible;
}

.cookie-modal-content {
  background-color: #fff;
  border-radius: 8px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 30px;
  position: relative;
  animation: modalFadeIn 0.3s forwards;
}

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

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #666;
}

.cookie-modal h3 {
  margin-bottom: 20px;
}

.cookie-modal p {
  margin-bottom: 20px;
}

.cookie-preferences {
  margin-bottom: 30px;
}

.cookie-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}

.cookie-option:last-child {
  border-bottom: none;
}

.cookie-option-text h4 {
  margin-bottom: 5px;
  font-size: 1rem;
}

.cookie-option-text p {
  margin-bottom: 0;
  font-size: 0.9rem;
  color: #666;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 24px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .toggle-slider {
  background-color: var(--primary-color);
}

input:disabled + .toggle-slider {
  opacity: 0.5;
  cursor: not-allowed;
}

input:checked + .toggle-slider:before {
  transform: translateX(26px);
}

.modal-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.save-preferences {
  background-color: var(--primary-color);
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
}

.save-preferences:hover {
  background-color: var(--secondary-color);
}

@media (max-width: 768px) {
  .cookie-consent-container {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .cookie-buttons {
    width: 100%;
    justify-content: space-between;
  }
  
  .cookie-modal-content {
    padding: 20px;
    max-width: 90%;
  }
}
