/* Cookie Consent Banner Styles */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--card-bg);
  border-top: 2px solid var(--border-color);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  padding: 20px;
  animation: slideUp 0.3s ease;
}

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

.cookie-banner-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cookie-banner-text h3 {
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.cookie-banner-text p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

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

.cookie-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
}

.cookie-modal-content {
  position: relative;
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 30px;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  z-index: 1;
}

.cookie-modal-content h3 {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.cookie-option {
  margin-bottom: 20px;
  padding: 15px;
  background-color: var(--bg-color);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
}

.cookie-option-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.cookie-option-header input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.cookie-option-header input[type="checkbox"]:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.cookie-option-header label {
  cursor: pointer;
  user-select: none;
  flex: 1;
}

.cookie-option-header label strong {
  color: var(--text-primary);
  font-size: 1rem;
}

.cookie-option-description {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-left: 28px;
  line-height: 1.5;
}

.cookie-modal-actions {
  margin-top: 25px;
  display: flex;
  justify-content: flex-end;
}

/* Responsive Design */
@media (max-width: 768px) {
  .cookie-banner-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-banner-actions {
    flex-direction: column;
    width: 100%;
  }

  .cookie-banner-actions button {
    width: 100%;
  }

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

  .cookie-modal-content h3 {
    font-size: 1.3rem;
  }
}

/* Dark theme specific adjustments */
[data-theme="dark"] .cookie-modal-overlay {
  background-color: rgba(0, 0, 0, 0.8);
}

/* Make sure buttons in cookie banner have proper styling */
.cookie-banner-actions .btn-primary,
.cookie-banner-actions .btn-secondary,
.cookie-modal-actions .btn-primary {
  white-space: nowrap;
  padding: 10px 20px;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .cookie-banner-actions .btn-primary,
  .cookie-banner-actions .btn-secondary {
    white-space: normal;
  }
}
