/* Compliance UI: cookie-consent banner, form consent checkboxes, cookie table. */

#cc-root {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 1000;
  padding: 16px;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
#cc-root[hidden] { display: none; }

.cc-card {
  pointer-events: auto;
  width: 100%;
  max-width: 720px;
  background: var(--bg-elevated, #ffffff);
  border: 1px solid var(--border, #e4e4e7);
  border-radius: var(--radius-lg, 16px);
  box-shadow: var(--shadow-lg, 0 12px 40px rgba(15, 23, 42, 0.12));
  padding: 20px;
  font-family: var(--font, 'Inter', sans-serif);
}

.cc-text {
  font-size: 0.9rem;
  color: var(--text-secondary, #52525b);
  line-height: 1.55;
  margin: 0 0 12px;
}
.cc-text a { color: var(--accent, #3d8e72); text-decoration: underline; }

.cc-heading {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary, #0a0a0a);
  margin: 0 0 8px;
}

.cc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 8px;
}

/* Accept and Reject share one style on purpose: GDPR requires equal prominence. */
.cc-btn {
  padding: 9px 18px;
  border: none;
  border-radius: var(--radius-full, 9999px);
  background: var(--accent, #3d8e72);
  color: #ffffff;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.cc-btn:hover { background: var(--accent-hover, #4ea687); }

.cc-link {
  background: none;
  border: none;
  padding: 9px 4px;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary, #52525b);
  text-decoration: underline;
  cursor: pointer;
}
.cc-link:hover { color: var(--text-primary, #0a0a0a); }

.cc-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid var(--border, #e4e4e7);
  font-size: 0.85rem;
  color: var(--text-secondary, #52525b);
  line-height: 1.5;
  cursor: pointer;
}
.cc-row strong { color: var(--text-primary, #0a0a0a); }
.cc-row input {
  margin-top: 4px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--accent, #3d8e72);
}

/* Consent checkbox used on the affiliate application form */
.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-secondary, #52525b);
  line-height: 1.5;
  margin: 14px 0 16px;
  cursor: pointer;
}
.consent-check input {
  margin-top: 3px;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  accent-color: var(--accent, #3d8e72);
}
.consent-check a { color: var(--accent, #3d8e72); text-decoration: underline; }

/* Privacy notice under the waitlist form */
.waitlist-consent {
  font-size: 0.8rem;
  color: var(--text-muted, #a1a1aa);
  margin-top: 10px;
}
.waitlist-consent a { color: var(--text-secondary, #52525b); text-decoration: underline; }

/* Cookie table on /cookie-policy/ (rendered from a raw-HTML block) */
.cc-table-wrap { overflow-x: auto; margin: 8px 0 16px; }
.cc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.cc-table th,
.cc-table td {
  text-align: left;
  padding: 8px 12px;
  border: 1px solid var(--border, #e4e4e7);
  vertical-align: top;
}
.cc-table th {
  background: var(--bg-secondary, #fafafa);
  color: var(--text-primary, #0a0a0a);
  font-weight: 600;
}
.cc-table td { color: var(--text-secondary, #52525b); }

@media (max-width: 560px) {
  .cc-card { padding: 16px; }
  .cc-btn { flex: 1 1 auto; text-align: center; }
}
