/**
 * tr-install — the "Install TiorAI" call-to-action.
 *
 * LAYOUT ONLY. Every colour, radius, space and type value is a theme token, and
 * the button itself carries `.btn .btn--primary` from the theme's global
 * `tiorai-unified-buttons` stylesheet. Nothing here restyles a button, and
 * nothing here introduces a colour the theme does not already define — so the
 * CTA follows the theme's light/dark swap for free.
 *
 * @package TiorAI_PWA
 */

.tr-install {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  font-family: var(--font-family-body);
}

.tr-install--card {
  padding: var(--space-4);
  background: var(--surface-raised, var(--color-bg-secondary));
  border: 1px solid var(--border-default, var(--color-border));
  border-radius: var(--radius-lg, var(--radius-default));
}

.tr-install--inline {
  gap: var(--space-2);
}

.tr-install__body {
  flex: 1 1 16rem;
  min-width: 0;
}

.tr-install__title {
  margin: 0;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
}

.tr-install__text {
  margin: var(--space-1) 0 0;
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

.tr-install__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  align-items: flex-start;
}

/* The hint replaces the button on platforms with no programmatic install, so it
   sits at the same optical weight as the label it stands in for. */
.tr-install__hint {
  margin: 0;
  max-width: 26rem;
  font-size: var(--font-size-sm);
  line-height: 1.5;
  color: var(--color-text-secondary);
}

@media (max-width: 480px) {
  .tr-install {
    align-items: stretch;
  }

  .tr-install__actions {
    width: 100%;
  }

  .tr-install__actions .btn {
    width: 100%;
  }
}
