.trial-period-group {
  padding: 0;
}

.form-section:has(#plan_has_trial:not(:checked)) .trial-days-field {
  display: none;
}

.trial-period-group .form-field {
  margin-block-start: 0;
}

.trial-period-group .form-field:first-child {
  margin-block-end: 1rem;
}

.trial-period-group .form-field .form-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  margin-block-end: 0;
  line-height: 1.375rem;
}

.trial-period-group .form-field .form-label span {
  line-height: 1.375rem;
  display: inline;
  font-size: 0.875rem;
}

.trial-period-group .form-checkbox {
  margin: 0;
  flex-shrink: 0;
  align-self: center;
}

.trial-days-field {
  padding-inline-start: 1.75rem;
  border-inline-start: 2px solid var(--color-border);
  margin-block-start: 0.5rem;
}

.trial-period-group:has(#plan_has_trial:checked) .trial-days-field {
  border-inline-start-color: var(--color-primary);
}

.form-section:has(#plan_has_trial) .form-checkbox {
  margin-inline-end: 0;
}
