/* consent.css — Cookie Preferences modal (F-013).
 * Loaded site-wide so the footer-triggered modal renders consistently
 * across /, /app, /patient, /privacy, /terms, /cookies. */

.consent-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .55);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.consent-overlay.open { display: flex; }

.consent-modal {
  background: #fff;
  border-radius: 12px;
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  position: relative;
}
.consent-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: transparent;
  border: 0;
  font-size: 24px;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
  padding: 4px 8px;
}
.consent-close:hover { color: #0f172a; }

.consent-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px;
  color: #0f172a;
}
.consent-intro {
  font-size: 13px;
  line-height: 1.5;
  color: #475569;
  margin: 0 0 16px;
}
.consent-intro a { color: #0ea5e9; text-decoration: none; }
.consent-intro a:hover { text-decoration: underline; }

.consent-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid #e2e8f0;
}
.consent-row-label { flex: 1; min-width: 0; }
.consent-row-title {
  font-size: 14px;
  font-weight: 500;
  color: #0f172a;
  margin-bottom: 2px;
}
.consent-row-sub {
  font-size: 12px;
  line-height: 1.45;
  color: #64748b;
}

.consent-switch {
  flex-shrink: 0;
  position: relative;
  width: 40px;
  height: 22px;
  cursor: pointer;
}
.consent-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; }
.consent-switch-track {
  display: block;
  width: 40px;
  height: 22px;
  background: #cbd5e1;
  border-radius: 11px;
  position: relative;
  transition: background .15s;
}
.consent-switch-track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform .15s;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.consent-switch input:checked + .consent-switch-track { background: #0ea5e9; }
.consent-switch input:checked + .consent-switch-track::after { transform: translateX(18px); }
.consent-switch input:disabled + .consent-switch-track { opacity: .55; cursor: not-allowed; }

.consent-gpc-note {
  margin-top: 8px;
  padding: 10px 12px;
  background: #fef3c7;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.45;
  color: #78350f;
}

.consent-dns-note {
  margin-top: 16px;
  padding: 12px;
  background: #f8fafc;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.5;
  color: #475569;
  border-top: 1px solid #e2e8f0;
}
.consent-dns-note strong { color: #0f172a; }

/* Footer link styling for app pages that don't have a built-in footer.
 * Compact, neutral, doesn't compete with primary content. */
.consent-footer {
  text-align: center;
  padding: 12px 16px;
  font-size: 11px;
  color: #94a3b8;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
}
.consent-footer a {
  color: inherit;
  text-decoration: none;
  margin: 0 6px;
}
.consent-footer a:hover { color: #0ea5e9; text-decoration: underline; }
