/* Cookie Consent Banner Styles */
/* Remove overlay to prevent blocking interactivity */
.consent-banner-overlay {
  display: none;
}

#cookie-consent-banner {
  position: fixed;
  left: 20px;
  bottom: 20px;
  width: auto;
  max-width: 380px;
  z-index: 9999;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.3s ease, transform 0.4s ease;
}

#cookie-consent-banner.consent-banner-hidden {
  opacity: 0;
  transform: translateY(100%);
}

.consent-banner-container {
  width: 100%;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  border: 1px solid #edf2f7;
}

.consent-banner-header {
  padding: 1rem 1.5rem;
  background-color: #f8fafc;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #edf2f7;
}

.consent-banner-header h3 {
  margin: 0;
  font-weight: 600;
  font-size: 1.25rem;
  color: #1a202c;
}

.consent-close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #64748b;
  cursor: pointer;
  padding: 0;
  margin: 0;
  line-height: 1;
}

.consent-banner-body {
  padding: 1rem;
  max-height: 250px;
  overflow-y: auto;
}

.consent-banner-body p {
  margin: 0 0 1.5rem;
  color: #4a5568;
  line-height: 1.5;
}

.consent-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.consent-option {
  padding: 0.75rem;
  border-radius: 6px;
  border: 1px solid #edf2f7;
  background-color: #f8fafc;
}

.consent-option-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.consent-option-header span {
  font-weight: 600;
  color: #1a202c;
}

.consent-description {
  margin: 0;
  font-size: 0.875rem;
  color: #64748b;
}

/* Switch styling */
.consent-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

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

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

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

input:checked + .consent-slider {
  background-color: #2563eb;
}

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

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

/* Button styles */
.consent-banner-footer {
  padding: 1rem 1.5rem;
  background-color: #f8fafc;
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  border-top: 1px solid #edf2f7;
}

.consent-btn {
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.consent-btn-primary {
  background-color: #2563eb;
  color: white;
  border: none;
}

.consent-btn-primary:hover {
  background-color: #1d4ed8;
}

.consent-btn-secondary {
  background-color: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.consent-btn-secondary:hover {
  background-color: #e2e8f0;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  #cookie-consent-banner {
    left: 10px;
    right: 10px;
    bottom: 10px;
    width: auto;
    max-width: calc(100% - 20px);
  }
  
  .consent-banner-footer {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .consent-btn {
    flex: 1 0 auto;
    text-align: center;
  }
  
  .consent-banner-body {
    max-height: 200px;
  }
}

/* Cookie preferences button (for footer or settings) */
.cookie-preferences-button {
  background: none;
  border: none;
  color: #64748b;
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.875rem;
  padding: 0;
}

.cookie-preferences-button:hover {
  color: #475569;
}
