.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--text-dark);
  color: white;
  padding: var(--spacing-md);
  box-shadow: 0 -4px 16px rgba(0,0,0,0.2);
  z-index: 1000;
  transform: translateY(100%);
  transition: transform 0.3s ease-in-out;
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-md);
}

.cookie-text {
  flex: 1;
}

.cookie-text p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  flex-shrink: 0;
}

.cookie-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.cookie-btn-accept {
  background-color: var(--primary-color);
  color: white;
}

.cookie-btn-accept:hover {
  background-color: #E55A2B;
}

.cookie-btn-reject {
  background-color: #dc3545;
  color: white;
}

.cookie-btn-reject:hover {
  background-color: #c82333;
}

.cookie-btn-customize {
  background-color: var(--secondary-color);
  color: white;
}

.cookie-btn-customize:hover {
  background-color: #3DB3A9;
}

.cookie-btn-secondary {
  background-color: transparent;
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
}

.cookie-link {
  color: var(--secondary-color);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
}

.cookie-link:hover {
  color: #3DB3A9;
  text-decoration: underline;
}

/* Cookie Preferences Modal */
.cookie-preferences {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1001;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-md);
}

.cookie-preferences.show {
  display: flex;
}

.cookie-preferences-content {
  background-color: white;
  border-radius: 12px;
  padding: var(--spacing-xl);
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  color: var(--text-dark);
}

.cookie-preferences-content h3 {
  margin-bottom: var(--spacing-lg);
  color: var(--text-dark);
  font-size: 1.5rem;
  text-align: center;
}

.cookie-category {
  margin-bottom: var(--spacing-lg);
  padding: var(--spacing-md);
  border: 1px solid var(--border-color);
  border-radius: 8px;
}

.cookie-category-header {
  margin-bottom: var(--spacing-sm);
}

.cookie-toggle {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-dark);
}

.cookie-toggle input[type="checkbox"] {
  display: none;
}

.toggle-slider {
  position: relative;
  width: 50px;
  height: 24px;
  background-color: #ccc;
  border-radius: 24px;
  margin-right: var(--spacing-sm);
  transition: background-color 0.3s ease;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: white;
  top: 2px;
  left: 2px;
  transition: transform 0.3s ease;
}

.cookie-toggle input[type="checkbox"]:checked + .toggle-slider {
  background-color: var(--primary-color);
}

.cookie-toggle input[type="checkbox"]:checked + .toggle-slider::before {
  transform: translateX(26px);
}

.cookie-toggle input[type="checkbox"]:disabled + .toggle-slider {
  background-color: var(--secondary-color);
  opacity: 0.7;
  cursor: not-allowed;
}

.cookie-toggle input[type="checkbox"]:disabled {
  cursor: not-allowed;
}

.cookie-toggle:has(input[type="checkbox"]:disabled) {
  cursor: not-allowed;
}

.toggle-label {
  font-size: 1rem;
}

.cookie-category p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin: 0;
  line-height: 1.5;
}

.cookie-preferences-actions {
  display: flex;
  gap: var(--spacing-sm);
  justify-content: center;
  margin-top: var(--spacing-lg);
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--border-color);
}

@media (max-width: 768px) {
  .cookie-content {
    flex-direction: column;
    text-align: center;
    gap: var(--spacing-sm);
  }

  .cookie-actions {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .cookie-btn {
    flex: 1;
    min-width: 80px;
    font-size: 0.8rem;
    padding: 8px 12px;
  }

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

  .cookie-preferences-content {
    margin: var(--spacing-sm);
    padding: var(--spacing-lg);
  }

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

  .cookie-preferences-actions .cookie-btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .cookie-actions {
    flex-direction: column;
    width: 100%;
  }

  .cookie-btn {
    width: 100%;
    margin-bottom: var(--spacing-xs);
  }

  .cookie-link {
    margin-top: var(--spacing-xs);
  }
}