/*
 * Compliance surfaces — research-use banner, gated price placeholder, reagent
 * specification table, and the checkout research-purpose selector.
 *
 * Loaded site-wide because the banner is site-wide.
 */

/* -------------------------------------------------------------------------- *
 * Site-wide research-use banner.
 * -------------------------------------------------------------------------- */

.ts-compliance-banner {
  padding: 8px 16px;
  background: #0f172a;
  color: #e8eef7;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.4;
}

.ts-compliance-banner__text {
  display: inline-block;
  max-width: 68ch;
}

/* -------------------------------------------------------------------------- *
 * Footer audience statement and disclaimer.
 * -------------------------------------------------------------------------- */

.ts-compliance-footer {
  padding: 20px 16px 28px;
  border-top: 1px solid rgba(15, 23, 42, 0.1);
  color: #5b6577;
  text-align: center;
  font-size: 12px;
  line-height: 1.6;
}

.ts-compliance-footer p {
  max-width: 80ch;
  margin: 0 auto 8px;
}

.ts-compliance-footer p:last-child {
  margin-bottom: 0;
}

/* -------------------------------------------------------------------------- *
 * Gated price placeholder.
 *
 * Sized like a price so a product card does not reflow between the logged-out
 * and logged-in states.
 * -------------------------------------------------------------------------- */

.ts-gated-price {
  display: inline-block;
  color: #2f6fb0;
  font-size: 0.95em;
  font-weight: 600;
  white-space: nowrap;
}

/* -------------------------------------------------------------------------- *
 * Reagent specifications on the product page.
 * -------------------------------------------------------------------------- */

.ts-compliance-specs {
  margin: 40px auto;
  padding: 24px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  background: #fbfcfe;
}

.ts-compliance-specs__heading {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.ts-compliance-specs__list {
  margin: 0;
}

.ts-compliance-specs__row {
  display: grid;
  grid-template-columns: minmax(140px, 200px) 1fr;
  gap: 12px 20px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
}

.ts-compliance-specs__row:last-of-type {
  border-bottom: 0;
}

.ts-compliance-specs__label {
  margin: 0;
  color: #5b6577;
  font-size: 13px;
  font-weight: 600;
}

.ts-compliance-specs__value {
  margin: 0;
  color: #0f172a;
  font-size: 14px;
  line-height: 1.5;
}

/*
 * A specification the policy requires but nobody has filled in. Deliberately
 * loud in the storefront, not just in wp-admin: an unfilled CAS number is a
 * failed compliance check, and it should be impossible to miss.
 */
.ts-compliance-specs__row.is-missing .ts-compliance-specs__value {
  color: #b32d2e;
  font-style: italic;
}

.ts-compliance-specs__disclaimer,
.ts-compliance-specs__audience {
  margin: 16px 0 0;
  color: #5b6577;
  font-size: 12px;
  line-height: 1.6;
}

@media (max-width: 600px) {
  .ts-compliance-specs__row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* -------------------------------------------------------------------------- *
 * Locked catalog panel.
 *
 * Sits where the homepage product carousel would be, inside the dark bento
 * hero, so it inherits the on-dark treatment.
 * -------------------------------------------------------------------------- */

.ts-catalog-locked {
  max-width: 56ch;
  margin: 0 auto;
  padding: 48px 24px 56px;
  text-align: center;
}

.ts-catalog-locked__eyebrow {
  margin: 0 0 10px;
  color: rgba(232, 238, 247, 0.62);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ts-catalog-locked__title {
  margin: 0 0 12px;
  color: #f4f7fb;
  font-size: clamp(22px, 3.4vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.ts-catalog-locked__copy {
  margin: 0 0 24px;
  color: rgba(232, 238, 247, 0.76);
  font-size: 15px;
  line-height: 1.6;
}

.ts-catalog-locked__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.ts-catalog-locked__signin {
  color: #cfe0f3;
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ts-catalog-locked__signin:hover,
.ts-catalog-locked__signin:focus-visible {
  color: #fff;
}

/* Same panel on a light section (home featured products). */
.ts-catalog-locked--on-light .ts-catalog-locked__eyebrow {
  color: #5b6577;
}

.ts-catalog-locked--on-light .ts-catalog-locked__title {
  color: #0f172a;
}

.ts-catalog-locked--on-light .ts-catalog-locked__copy {
  color: #5b6577;
}

.ts-catalog-locked--on-light .ts-catalog-locked__signin {
  color: #2f6fb0;
}

.ts-catalog-locked--on-light .ts-catalog-locked__signin:hover,
.ts-catalog-locked--on-light .ts-catalog-locked__signin:focus-visible {
  color: #0f172a;
}

/* -------------------------------------------------------------------------- *
 * Checkout research-purpose selector.
 * -------------------------------------------------------------------------- */

.ts-checkout-compliance__purpose {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.ts-checkout-compliance__purpose-label {
  color: #0f172a;
  font-size: 13px;
  font-weight: 600;
}

.ts-checkout-compliance__purpose-select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid rgba(15, 23, 42, 0.22);
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
  font-size: 15px;
  line-height: 1.3;
}

.ts-checkout-compliance__purpose-select:invalid {
  color: #5b6577;
}

.ts-checkout-compliance__purpose-select:focus-visible {
  outline: 2px solid #2f6fb0;
  outline-offset: 1px;
}
