/* Cookie Consent Popup Styles */

.cookie-consent-popup {
  position: fixed;
  bottom: 0;
  right: 0;
  width: 100%;
  max-width: 36.25rem;
  z-index: 9999;
  animation: slideInUp 0.4s ease;
}

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

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

.cookie-consent-content {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  margin: 1rem;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  overflow-y: auto;
}

.cookie-consent-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem;
  border-bottom: 1px solid #f0f0f0;
}

.cookie-consent-header h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2937;
}

.cookie-consent-close {
  background: none;
  border: none;
  font-size: 1.75rem;
  cursor: pointer;
  color: #6b7280;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.cookie-consent-close:hover {
  color: #1f2937;
}

.cookie-consent-body {
  padding: 1.25rem;
  flex: 1;
  overflow-y: auto;
}

.cookie-consent-description {
  margin: 0 0 1rem 0;
  font-size: 0.875rem;
  color: #4b5563;
  line-height: 1.5;
}

.cookie-consent-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
}

.cookie-consent-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  user-select: none;
}

.cookie-consent-checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-width: 20px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: #e3010f;
}

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

.cookie-consent-checkbox-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.cookie-consent-checkbox-text strong {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1f2937;
}

.cookie-consent-checkbox-text small {
  font-size: 0.75rem;
  color: #6b7280;
  line-height: 1.4;
}

.cookie-consent-legal {
  font-size: 0.75rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.5;
}

.cookie-consent-legal a {
  color: #e3010f;
  text-decoration: none;
  font-weight: 500;
}

.cookie-consent-legal a:hover {
  text-decoration: underline;
}

.cookie-consent-footer {
  display: flex;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid #f0f0f0;
  background: #f9fafb;
  justify-content: flex-end;
}

.cookie-consent-btn {
  padding: 0.625rem 1rem;
  border: none;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.cookie-consent-btn-reject {
  background: #e5e7eb;
  color: #1f2937;
}

.cookie-consent-btn-reject:hover {
  background: #d1d5db;
}

.cookie-consent-btn-settings {
  background: #f3f4f6;
  color: #1f2937;
  border: 1px solid #d1d5db;
}

.cookie-consent-btn-settings:hover {
  background: #e5e7eb;
}

.cookie-consent-btn-accept {
  background: #e3010f;
  color: white;
}

.cookie-consent-btn-accept:hover {
  background: #c70009;
  box-shadow: 0 4px 12px rgba(227, 1, 15, 0.3);
}

/* Mobile Responsive */
@media (max-width: 640px) {
  .cookie-consent-popup {
    max-width: 100%;
  }

  .cookie-consent-content {
    margin: 0.5rem;
    border-radius: 6px;
  }

  .cookie-consent-footer {
    flex-direction: column-reverse;
    gap: 0.5rem;
  }

  .cookie-consent-btn {
    width: 100%;
    padding: 0.75rem;
  }

  .cookie-consent-body {
    max-height: calc(90vh - 200px);
  }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
  .cookie-consent-content {
    background: #1f2937;
    border-color: #374151;
  }

  .cookie-consent-header {
    border-bottom-color: #374151;
  }

  .cookie-consent-header h3 {
    color: #f3f4f6;
  }

  .cookie-consent-description,
  .cookie-consent-legal {
    color: #d1d5db;
  }

  .cookie-consent-checkbox-text strong {
    color: #f3f4f6;
  }

  .cookie-consent-checkbox-text small {
    color: #9ca3af;
  }

  .cookie-consent-footer {
    background: #111827;
    border-top-color: #374151;
  }

  .cookie-consent-btn-reject {
    background: #374151;
    color: #f3f4f6;
  }

  .cookie-consent-btn-reject:hover {
    background: #4b5563;
  }

  .cookie-consent-btn-settings {
    background: #374151;
    color: #f3f4f6;
    border-color: #4b5563;
  }

  .cookie-consent-btn-settings:hover {
    background: #4b5563;
  }
}
