/* Consent checkbox — signup / onboarding */
.tm-consent {
  margin: 14px 0 12px;
}

.tm-consent__label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.tm-consent__input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.tm-consent__box {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 6px;
  border: 1.5px solid rgba(148, 163, 184, 0.45);
  background: rgba(15, 23, 42, 0.35);
  position: relative;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.tm-consent__input:focus-visible + .tm-consent__box {
  outline: 2px solid rgba(56, 189, 248, 0.55);
  outline-offset: 2px;
}

.tm-consent__input:checked + .tm-consent__box {
  border-color: transparent;
  background: linear-gradient(135deg, #38bdf8, #818cf8);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.35);
}

.tm-consent__input:checked + .tm-consent__box::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.tm-consent__text {
  font-size: 0.86rem;
  line-height: 1.55;
  color: #64748b;
}

.tm-visitor-otp .tm-consent__text,
.tm-onboard-form-card .tm-consent__text {
  color: #94a3b8;
}

.tm-consent__link {
  color: #38bdf8;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.tm-consent__link:hover {
  color: #818cf8;
  text-decoration: underline;
}

.tm-consent__link--modal {
  cursor: pointer;
}

.tm-consent__link--modal:focus-visible {
  outline: 2px solid rgba(56, 189, 248, 0.55);
  outline-offset: 2px;
  border-radius: 4px;
}

.tm-consent.is-invalid .tm-consent__box {
  border-color: #f87171;
  box-shadow: 0 0 0 2px rgba(248, 113, 113, 0.2);
}

.tm-consent__error {
  margin: 8px 0 0 30px;
  font-size: 0.82rem;
  color: #f87171;
}

.tm-consent__error[hidden] {
  display: none !important;
}

.tm-onboard-form-card .tm-consent {
  margin-top: 18px;
  margin-bottom: 4px;
}

.tm-ob-consent-actions {
  margin-top: 4px;
}

.tm-ob-companion-policy-note {
  margin: 12px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.84rem;
  line-height: 1.55;
  color: rgba(203, 213, 225, 0.95);
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.22);
}

.tm-ob-companion-policy-note a {
  color: #7dd3fc;
  font-weight: 600;
}

.tm-ob-consent-actions .tm-onboard-btn {
  width: 100%;
}

.tm-visitor-otp .tm-consent {
  margin-top: 12px;
  margin-bottom: 10px;
}

body.tm-legal-modal-lock {
  overflow: hidden;
}
